This may not be terribly helpful - but something *else* is wrong with your box. The settings are dorked, some hardware is not operating correctly, or you have some kind of mismatched kernel
Progress need variety (The Dawn of Haiku OS (Spectrum))
Posted May 1, 2012 16:20 UTC (Tue) by nybble41 (subscriber, #55106)
[Link]
Here are some settings that helped me out with a similar issue:
# Limit total dirty data to 60MB
sysctl vm.dirty_bytes=62914560
# Only use transparent hugepages on request via madvise()
echo madvise > /sys/kernel/mm/transparent_hugepage/enabled
These settings may not be for everyone. In particular, the second issue is supposedly much better in recent (>= 3.3) kernels. However, these changes did get rid of most of my writeback issues.