Messages in this thread Patch in this message | | | From | Heinz Mauelshagen <> | Subject | Buffer Memory | Date | Wed, 10 Jun 1998 18:06:30 METDST |
| |
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
| |