lkml.org 
[lkml]   [1998]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectBuffer Memory
Date

Buffer cache eats up main protions of physical memory in any i/o
intensive situation, no matter what /proc/sys/vm/buffermem percentage tells.

The following patch fixes this at least for me &*)


--- linux-2.1.105/fs/buffer.c Wed Jun 10 17:30:40 1998
+++ linux-2.1.105/fs/buffer.c.orig Fri Jun 5 07:53:50 1998
@@ -1590,10 +1590,6 @@
struct buffer_head * insert_point;
int isize;

- if ( nr_free_pages < freepages.min * 2 ||
- ( buffermem >> PAGE_SHIFT) * 100 >
- buffer_mem.max_percent * num_physpages) return 0;
-
if ((size & 511) || (size > PAGE_SIZE)) {
printk("VFS: grow_buffers: size = %d\n",size);
return 0;


Best regards,
Heinz
--

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Systemmanagement Entwicklungsbereich 2 Deutsche Telekom AG
Entwicklungszentrum Darmstadt
Heinz Mauelshagen Otto-Roehm-Strasse 71c
Postfach 10 05 41
mge@ez-darmstadt.telekom.de 64205 Darmstadt
Germany
+49 6151 886-425
FAX-386
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

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