lkml.org 
[lkml]   [2000]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Unfreed kernel buffers (fsck and 2.3.99-pre*)
>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/

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