Re: [PATCH] sysctl: vfs_cache_divisor

2007-03-23 Thread Kyle Moffett
On Mar 23, 2007, at 20:45:21, Kyle Moffett wrote: On Mar 23, 2007, at 16:59:02, H. Peter Anvin wrote: Randy Dunlap wrote: That makes a lot of sense to me. It gives us finer-grained control without having to support fixed-point data. I've been working on the fixed-point data patch, but I'm

Re: [PATCH] sysctl: vfs_cache_divisor

2007-03-23 Thread Kyle Moffett
On Mar 23, 2007, at 16:59:02, H. Peter Anvin wrote: Randy Dunlap wrote: Hi, That makes a lot of sense to me. It gives us finer-grained control without having to support fixed-point data. I've been working on the fixed-point data patch, but I'm going to give this method some time also, to

Re: [PATCH] sysctl: vfs_cache_divisor

2007-03-23 Thread H. Peter Anvin
Randy Dunlap wrote: Hi, That makes a lot of sense to me. It gives us finer-grained control without having to support fixed-point data. I've been working on the fixed-point data patch, but I'm going to give this method some time also, to see how it looks in code (instead of just thinking about

Re: [PATCH] sysctl: vfs_cache_divisor

2007-03-23 Thread Randy Dunlap
Kyle Moffett wrote: On Mar 21, 2007, at 19:11:40, Andrew Morton wrote: On Wed, 21 Mar 2007 16:01:32 -0700 Randy Dunlap <[EMAIL PROTECTED]> wrote: I prefer the fixed-point values for pressure and dirty* to having duplicated entries for each of them. I'll proceed with that idea. Problem is, if

Re: [PATCH] sysctl: vfs_cache_divisor

2007-03-22 Thread Kyle Moffett
On Mar 21, 2007, at 19:11:40, Andrew Morton wrote: On Wed, 21 Mar 2007 16:01:32 -0700 Randy Dunlap <[EMAIL PROTECTED]> wrote: I prefer the fixed-point values for pressure and dirty* to having duplicated entries for each of them. I'll proceed with that idea. Problem is, if a read of /proc/sy

Re: [PATCH] sysctl: vfs_cache_divisor

2007-03-21 Thread Andrew Morton
On Wed, 21 Mar 2007 16:01:32 -0700 Randy Dunlap <[EMAIL PROTECTED]> wrote: > On Mon, 19 Mar 2007 21:22:33 -0700 H. Peter Anvin wrote: > > > Randy Dunlap wrote: > > >> > > >> The we duplicate all the relevant /proc knobs: > > >> > > >> cat /proc/sys/vm/dirty_ratio > > >> 30 > > >> cat /proc/sys/vm

Re: [PATCH] sysctl: vfs_cache_divisor

2007-03-21 Thread Randy Dunlap
On Mon, 19 Mar 2007 21:22:33 -0700 H. Peter Anvin wrote: > Randy Dunlap wrote: > >> > >> The we duplicate all the relevant /proc knobs: > >> > >> cat /proc/sys/vm/dirty_ratio > >> 30 > >> cat /proc/sys/vm/hires-dirty_ratio/ > >> 30 > >> > >> Or we do something else ;) > > > > Sounds better.

Re: [PATCH] sysctl: vfs_cache_divisor

2007-03-20 Thread Ingo Oeser
Hi Randy, On Monday 19 March 2007, Randy Dunlap wrote: > Were there any patches written after this? If so, I missed them. > If not, does this patch help any? How is division by zero avoided? Maybe one can avoid setting it to zero. Regards Ingo Oeser - To unsubscribe from this list: send the li

Re: [PATCH] sysctl: vfs_cache_divisor

2007-03-19 Thread H. Peter Anvin
Randy Dunlap wrote: The we duplicate all the relevant /proc knobs: cat /proc/sys/vm/dirty_ratio 30 cat /proc/sys/vm/hires-dirty_ratio/ 30 Or we do something else ;) Sounds better. I wasn't very keen on the userspace interface that this exposed. Will look at those. Okay... may be I c

Re: [PATCH] sysctl: vfs_cache_divisor

2007-03-19 Thread Randy Dunlap
Andrew Morton wrote: On Mon, 19 Mar 2007 12:27:40 -0700 Randy Dunlap <[EMAIL PROTECTED]> wrote: +The default vfs_cache_divisor value is 100 (like percent). However, for +extremely large systems where a value of vfs_cache_pressure of less than +1 percent is desirable, using a larger vfs_cache_d

Re: [PATCH] sysctl: vfs_cache_divisor

2007-03-19 Thread Andrew Morton
On Mon, 19 Mar 2007 12:27:40 -0700 Randy Dunlap <[EMAIL PROTECTED]> wrote: > +The default vfs_cache_divisor value is 100 (like percent). However, for > +extremely large systems where a value of vfs_cache_pressure of less than > +1 percent is desirable, using a larger vfs_cache_divisor enables thi

[PATCH] sysctl: vfs_cache_divisor

2007-03-19 Thread Randy Dunlap
On Sat, 06 Jan 2007 12:18:39 -0800 H. Peter Anvin wrote: > Andrew Morton wrote: > >>> > >>> The most fundamental problem seems to be that I can't tell currnt Linux > >>> kernels that the dcache/icache is precious, and that it's way too eager > >>> to dump dcache and icache in favour of data bloc