* pdflush question...
@ 2003-09-03 9:24 Daniel Blueman
2003-09-03 15:38 ` Andrew Morton
2003-09-03 17:12 ` Robert Love
0 siblings, 2 replies; 3+ messages in thread
From: Daniel Blueman @ 2003-09-03 9:24 UTC (permalink / raw)
To: linux-kernel, akpm
Is it worth having a kernel config option to vary the number of 'pdflush'
kernel threads?
For embedded, systems with no swap and maybe uniproc (?), perhaps one
pdflush kthread would do?
Perhaps more generally, the number could be linked to the number of
processors and/or swap devices or spindles- this would eliminate having to configure
it, and improve downward and upward scaling, perhaps?
--
Daniel J Blueman
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--------------------------------------------------
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: pdflush question...
2003-09-03 9:24 pdflush question Daniel Blueman
@ 2003-09-03 15:38 ` Andrew Morton
2003-09-03 17:12 ` Robert Love
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Morton @ 2003-09-03 15:38 UTC (permalink / raw)
To: Daniel Blueman; +Cc: linux-kernel
Daniel Blueman <daniel.blueman@gmx.net> wrote:
>
> Is it worth having a kernel config option to vary the number of 'pdflush'
> kernel threads?
>
> For embedded, systems with no swap and maybe uniproc (?), perhaps one
> pdflush kthread would do?
Probably it should just be set to one by default anyway. One pdflush is
good at serving lots of spindles.
> Perhaps more generally, the number could be linked to the number of
> processors and/or swap devices or spindles- this would eliminate having to configure
> it, and improve downward and upward scaling, perhaps?
Well the kernel will create up to eight pdflush instances according to the
current load. That kinda works.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: pdflush question...
2003-09-03 9:24 pdflush question Daniel Blueman
2003-09-03 15:38 ` Andrew Morton
@ 2003-09-03 17:12 ` Robert Love
1 sibling, 0 replies; 3+ messages in thread
From: Robert Love @ 2003-09-03 17:12 UTC (permalink / raw)
To: Daniel Blueman; +Cc: linux-kernel, akpm
On Wed, 2003-09-03 at 05:24, Daniel Blueman wrote:
> Is it worth having a kernel config option to vary the number of 'pdflush'
> kernel threads?
I suspect no.
> For embedded, systems with no swap and maybe uniproc (?), perhaps one
> pdflush kthread would do?
Yes. Definitely. In fact, I think that, for all systems, the initial
default should perhaps be one.
But note that the reason for n>1 pdflush threads is neither swap or
processor related. The multiple threads can keep multiple block devices
busy, since one thread blocking on I/O will not affect another one.
I guess the real test would be to set MIN_PDFLUSH_THREADS to one and see
if one is enough for the average machines. If the number quickly jumps
to 2 or more... then we know its a bad idea.
> Perhaps more generally, the number could be linked to the number of
> processors and/or swap devices or spindles- this would eliminate having to configure
> it, and improve downward and upward scaling, perhaps?
Number of spindles, yes. But how do we know that? And its just the
number of busy spindles, really.
I say we drop down to one.
Robert Love
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-09-03 17:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-03 9:24 pdflush question Daniel Blueman
2003-09-03 15:38 ` Andrew Morton
2003-09-03 17:12 ` Robert Love
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®