Paul Jackson <[email protected]> wrote: > > A per-task stat requires walking the tasklist, to build a list of the > tasks to query. Nope, just task->mm->whatever. > A raw counter requires repeated polling to determine the recent rate of > activity. True. > The filtered per-cpuset rate avoids any need to repeatedly access > global resources such as the tasklist, and minimizes the total cpu > cycles required to get the interesting stat. > Well no. Because the filtered-whatsit takes two spinlocks and does a bunch of arith for each and every task, each time it calls try_to_free_pages(). The frequency of that could be very high indeed, even when nobody is interested in the metric which is being maintained(!). And I'd suggest that only a minority of workloads would be interested in this metric? ergo, polling the thing once per five seconds in those situations where we actually want to poll the thing may well be cheaper, in global terms? - 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/
- Follow-Ups:
- Re: [Lhms-devel] [PATCH 0/7] Fragmentation Avoidance V19
- From: Paul Jackson <[email protected]>
- Re: [Lhms-devel] [PATCH 0/7] Fragmentation Avoidance V19
- References:
- Re: [Lhms-devel] [PATCH 0/7] Fragmentation Avoidance V19
- From: Gerrit Huizenga <[email protected]>
- Re: [Lhms-devel] [PATCH 0/7] Fragmentation Avoidance V19
- From: Rob Landley <[email protected]>
- Re: [Lhms-devel] [PATCH 0/7] Fragmentation Avoidance V19
- From: Nick Piggin <[email protected]>
- Re: [Lhms-devel] [PATCH 0/7] Fragmentation Avoidance V19
- From: Rob Landley <[email protected]>
- Re: [Lhms-devel] [PATCH 0/7] Fragmentation Avoidance V19
- From: Jeff Dike <[email protected]>
- Re: [Lhms-devel] [PATCH 0/7] Fragmentation Avoidance V19
- From: Badari Pulavarty <[email protected]>
- Re: [Lhms-devel] [PATCH 0/7] Fragmentation Avoidance V19
- From: Andrew Morton <[email protected]>
- Re: [Lhms-devel] [PATCH 0/7] Fragmentation Avoidance V19
- From: Paul Jackson <[email protected]>
- Re: [Lhms-devel] [PATCH 0/7] Fragmentation Avoidance V19
- From: Andrew Morton <[email protected]>
- Re: [Lhms-devel] [PATCH 0/7] Fragmentation Avoidance V19
- From: Paul Jackson <[email protected]>
- Re: [Lhms-devel] [PATCH 0/7] Fragmentation Avoidance V19
- From: Andrew Morton <[email protected]>
- Re: [Lhms-devel] [PATCH 0/7] Fragmentation Avoidance V19
- From: Paul Jackson <[email protected]>
- Re: [Lhms-devel] [PATCH 0/7] Fragmentation Avoidance V19
- Prev by Date: Re: [PATCH] core remove PageReserved
- Next by Date: Re: [patch] swapin rlimit
- Previous by thread: Re: [Lhms-devel] [PATCH 0/7] Fragmentation Avoidance V19
- Next by thread: Re: [Lhms-devel] [PATCH 0/7] Fragmentation Avoidance V19
- Index(es):