Re: [Patch 6/7] Swapin page fault delays

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Arjan van de Ven wrote:

On Mon, 2006-02-27 at 03:22 -0500, Shailabh Nagar wrote:
delayacct-swapin.patch

Record time spent by a task waiting for its pages to be swapped in.
This statistic can help in adjusting the rss limits of tasks (process), especially relative to each other, when the system is under memory pressure.


ok this poses a question: how do you deal with nested timings?
I don't :-(
An earlier version used local variables instead of one within the task_delay_info struct but we moved to using a var within to save on stack space in critical paths.

Say an
O_SYC write which internally causes a pagefault?
And here we hit the problem of nesting being needed....so....

delayacct_timestamp_start() at minimum has to get event-type specific,
or even implement a stack of some sorts.
Would keeping the timespec vars on the stacks of the functions being accounted be too expensive vs. keeping bunches of vars within task_delay_info to deal with the nesting ?

Unfortunately, the need for accuracy also means the variables needed are timespecs and
not something smaller.

--Shailabh

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux