lkml.org 
[lkml]   [2001]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectRe: linux-2.4.13 high SWAP
Date
In article <200110241936.RAA04632@inter.lojasrenner.com.br>,
Andre Margis <andre@sam.com.br> wrote:
>
>Without use the tmpfs, appears to be OK!!!!!!!!!!

Ok, the problem appears to be that tmpfs stuff just stays on the
inactive list, and because it cannot be written out it eventually
totally clogs the system.

Suggested fix appended (from Andrea),

Linus

-----
diff -u --recursive --new-file v2.4.13/linux/drivers/block/rd.c linux/drivers/block/rd.c
--- v2.4.13/linux/drivers/block/rd.c Tue Oct 23 22:48:50 2001
+++ linux/drivers/block/rd.c Wed Oct 24 08:59:21 2001
@@ -209,6 +209,7 @@
*/
static int ramdisk_writepage(struct page *page)
{
+ activate_page(page);
SetPageDirty(page);
UnlockPage(page);
return 0;
diff -u --recursive --new-file v2.4.13/linux/fs/ramfs/inode.c linux/fs/ramfs/inode.c
--- v2.4.13/linux/fs/ramfs/inode.c Tue Oct 9 17:06:53 2001
+++ linux/fs/ramfs/inode.c Wed Oct 24 08:59:21 2001
@@ -81,6 +81,7 @@
*/
static int ramfs_writepage(struct page *page)
{
+ activate_page(page);
SetPageDirty(page);
UnlockPage(page);
return 0;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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