Re: Unfreed kernel buffers (fsck and 2.3.99-pre*)

From: Andrea Arcangeli (andrea@suse.de)
Date: Mon Mar 27 2000 - 16:46:02 EST


>On Wed, 22 Mar 2000, Craig Kulesa wrote:
>
>> Now open a large Emacs session, go 23M into swap. Close Emacs. Then look:
>>
>> total used free shared buffers cached
>> Mem: 30348 27136 3212 0 160 22748
>> minus buffers/cache: 4228 26120
>> Swap: 32764 17640 15124
>>
>> Hmmm, there's nothing significant running anymore, yet 17M is shown paged
>> out. If I go and 'dd if=/dev/zero of=dump.dat bs=1024k count=40', or

Could you give this a try?

--- 2.3.99pre3/include/linux/swap.h Thu Mar 16 01:26:46 2000
+++ /tmp/swap.h Mon Mar 27 23:41:40 2000
@@ -154,7 +154,7 @@
                 return 1;
         count = page_count(page);
         if (PageSwapCache(page))
- count += swap_count(page) - 2;
+ count += swap_count(page) - 2 - !!page->buffers;
         return count > 1;
 }
 

Andrea

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:21 EST