Messages in this thread Patch in this message | | | Date | Tue, 17 Mar 1998 16:01:45 +0530 (GMT+0530) | From | Chirayu Patel <> | Subject | Re: /proc/sys/vm/swapout_interval is useless |
| |
Hi,
This patch will solve the problem. Please change the file manually. pico is screwing the display.
Now the actual value of swapout_interval gets displayed in /proc.
Yet-another-mm-hacker, Chirayu
--- sysctl.c.orig Tue Mar 17 15:42:32 1998 +++ sysctl.c Tue Mar 17 15:50:15 1998 @@ -181,7 +181,7 @@ {VM_SWAPCTL, "swapctl", &swap_control, sizeof(swap_control_t), 0600, NULL, &proc_dointvec}, {VM_SWAPOUT, "swapout_interval", - &swapout_interval, sizeof(int), 0600, NULL, &proc_dointvec_jiffies}, + &swapout_interval, sizeof(int), 0600, NULL, &proc_dointvec}, {VM_FREEPG, "freepages", &min_free_pages, 3*sizeof(int), 0600, NULL, &proc_dointvec}, {VM_BDFLUSH, "bdflush", &bdf_prm, 9*sizeof(int), 0600, NULL,
On Mon, 16 Mar 1998, Rik van Riel wrote:
> On Mon, 16 Mar 1998, Rik van Riel wrote: > > > On 16 Mar 1998, Andreas Schwab wrote: > > > > > It is impossible to finetune swapout_interval using > > > /proc/sys/vm/swapout_interval because any value written to it is > > > multiplied by HZ, and the only usefull values are smaller than HZ. But > > > proc interface for sysctl cannot cope with fractional values. The only > > > chance to change the value of swapout_interval is to use the sysctl > > > syscall, which uses the raw number. > > I've grep'ed all of the kernel for occurances of swapout_interval, > and haven't found where the alledged multiplication should take > place... > > But the fact remains that /proc/sys/vm/swapout_interval returns > a false value... If you (or anyone for that matter) could give > me a pointer, I'll try and fix the bug for you... > > Rik. > +-------------------------------------------+--------------------------+ > | Linux: - LinuxHQ MM-patches page | Scouting webmaster | > | - kswapd ask-him & complain-to guy | Vries cubscout leader | > | http://www.fys.ruu.nl/~riel/ | <H.H.vanRiel@fys.ruu.nl> | > +-------------------------------------------+--------------------------+ > > > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.rutgers.edu > >
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |