lkml.org 
[lkml]   [1998]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] 498+ days uptime
From
Date
"H. Peter Anvin" <hpa@transmeta.com> writes:

> >
> > bdflush yes, but update is not obsolete.
> >
> > It is still needed if you want to make sure data (and metadata)
> > eventually gets written to disk.
> >
> > Of course, you can run without update, but then don't bother if you
> > lose file in system crash, even if you edited it and saved it few
> > hours ago. :)
> >
> > Update is very important if you have lots of RAM in your computer.
> >
>
> Oh. I guess my next question then is "why", as why can't this be done
> by kflushd as well?
>

To tell you the truth, I'm not sure why, these days.

I thought it was done this way (update running in userspace) so to
have control how often buffers get flushed. But, I believe bdflush
program had this functionality, and it is long gone (as you correctly
noticed).

These days, however, we have sysctl thing that is usable for about
anything, and especially for things like this.

Peeking at /proc/sys/vm/bdflush, I can see all needed variables are
already there, so nothing stops kernel to (ab)use them.

{atlas} [/proc/sys/vm]# cat bdflush
40 500 64 256 15 3000 500 1884 2

I'm crossposting this mail to linux-mm where some clever MM people can
be found. Hopefully we can get an explanation why do we still need
update.

Regards,
--
Posted by Zlatko Calusic E-mail: <Zlatko.Calusic@CARNet.hr>
---------------------------------------------------------------------
Linux, WinNT and MS-DOS. The Good, The Bad and The Ugly.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

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