[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0707291405350.15835@asgard.lang.hm>
Date: Sun, 29 Jul 2007 14:19:58 -0700 (PDT)
From: david@...g.hm
To: Rene Herman <rene.herman@...il.com>
cc: Daniel Hazelton <dhazelton@...er.net>,
Mike Galbraith <efault@....de>,
Andrew Morton <akpm@...ux-foundation.org>,
Ingo Molnar <mingo@...e.hu>,
Frank Kingswood <frank@...gswood-consulting.co.uk>,
Andi Kleen <andi@...stfloor.org>,
Nick Piggin <nickpiggin@...oo.com.au>,
Ray Lee <ray-lk@...rabbit.org>,
Jesper Juhl <jesper.juhl@...il.com>,
ck list <ck@....kolivas.org>, Paul Jackson <pj@....com>,
linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: RFT: updatedb "morning after" problem [was: Re: -mm merge plans
for 2.6.23]
On Sun, 29 Jul 2007, Rene Herman wrote:
> On 07/29/2007 01:41 PM, david@...g.hm wrote:
>
>> I agree that tinkering with the core VM code should not be done lightly,
>> but this has been put through the proper process and is stalled with no
>> hints on how to move forward.
>
> It has not. Concerns that were raised (by specifically Nick Piggin) weren't
> being addressed.
I may have missed them, but what I saw from him weren't specific issues,
but instead a nebulous 'something better may come along later'
>> forget the nightly cron jobs for the moment. think of this scenerio. you
>> have your memory fairly full with apps that you have open (including
>> firefox with many tabs), you receive a spreadsheet you need to look at, so
>> you fire up openoffice to look at it. then you exit openoffice and try
>> to go back to firefox (after a pause while you walk to the printer to
>> get the printout of the spreadsheet)
>
> And swinging a dead rat from its tail facing east-wards while reciting
> Documentation/CodingStyle.
>
> Okay, very very sorry, that was particularly childish, but that "walking to
> the printer" is ofcourse completely constructed and this _is_ something to
> take into account.
yes it was contrived for simplicity.
the same effect would happen if instead of going back to firefox the user
instead went to their e-mail software and read some mail. doing so should
still make the machine idle enough to let prefetch kick in.
> Swap-prefetch wants to be free, which (also again) it is
> doing a good job at it seems, but this also means that it waits for the VM to
> be _very_ idle before it does anything and as such, we cannot just forget the
> "nightly" scenario and pretend it's about something else entirely. As long as
> the machine's being used, swap-prefetch doesn't kick in.
how long does the machine need to be idle? if someone spends 30 seconds
reading an e-mail that's an incredibly long time for the system and I
would think it should be enough to let the prefetch kick in.
>> > -- 3: no serious consideration of possible alternatives
>> >
>> > Tweaking existing use-oce logic is one I've heard but if we consider
>> > the i/dcache issue dead, I believe that one is as well. Going to
>> > userspace is another one. Largest theoretical potential. I myself am
>> > extremely sceptical about the Linux userland, and largely equate it
>> > with "smallest _practical_ potential" -- but that might just be me.
>> >
>> > A larger swap granularity, possible even a self-training
>> > granularity. Up to now, seeks only get costlier and costlier with
>> > respect to reads with every generation of disk (flash would largely
>> > overcome it though) and doing more in one read/write _greatly_
>> > improves throughput, maybe up to the point that swap-prefetch is no
>> > longer very useful. I myself don't know about the tradeoffs
>> > involved.
>>
>> larger swap granularity may help, but waiting for the user to need the
>> ram and have to wait for it to be read back in is always going to be
>> worse for the user then pre-populating the free memory (for the case
>> where the pre-population is right, for other cases it's the same). so
>> I see this as a red herring
>
> I saw Chris Snook make a good post here and am going to defer this part to
> that discussion:
>
> http://lkml.org/lkml/2007/7/27/421
>
> But no, it's not a red herring if _practically_ speaking the swapin is fast
> enough once started that people don't actually mind anymore since in that
> case you could simply do without yet more additional VM complexity (and
> kernel daemon).
swapin will always require disk access, and avoiding doing disk access
while the user is waiting for it by doing it when the system isn't useing
the disk will always be a win (possibly not as large of a win, but still a
win) on slow laptop drives where you may only get 20MB/second of reads
under optimal situations it doesn't take much reading to be noticed by the
user.
>> there are fully legitimate situations where this is useful, the 'papering
>> over' effect is not referring to these, it's referring to other possible
>> problems in the future.
>
> No, it's not just future. Just look at the various things under discussion
> now such as improved use-once and better swapin.
and these thing do not conflict with prefetch, they compliment it.
improved use-once will avoid pushing things out to swap in the first
place. this will help during normal workloads so is valuble in any case.
better swapin (I assume you are talking about things like larger swap
granularity) will also help during normal workloads when you are thrashing
into swap.
prefetch will help when you have pushed things out to swap and now have
free memory and a momentarily idle system.
David Lang
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists