[lkml]   [2000]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: patch: reiserfs for 2.3.49
Chris writes:
> memory pressure hooks would be very useful. We have a hard to reproduce
> deadlock under very high swap load, where kswapd ends up waiting on the
> log while trying to flush inodes to disk. I have a work around planned
> (all in the journal code), it won't take long to code, but it will take a
> few days to test right.

Yes, it would be good to have some sort of callback to the filesystem to
force a page flush. We have similar problems with our filesystem when
running a benchmark (iozone) which creates files larger than available
RAM within a few seconds. All of the pages are referenced, and our daemon
can't even get a chance to flush them before the system locks.

One possible solution we have thought about is to block the process that
is adding to the cache until more pages are free, but this suffers because
the function nr_free_cache_pages() is not exported from the kernel, so we
don't even know how much memory is available... A callback would be much
better. I think a patch to do this was even posted on l-k within the last
month or so...

Cheers, Andreas
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?" -- Dogbert

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:57    [W:0.121 / U:11.740 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site