[lkml]   [2002]   [Mar]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] struct page shrinkage

>> Andrew,
>> I have an application which needs to know the total number of locked and
>> dirtied pages at any given time. In which application locked-page
>> accounting is done? I don't see it in base 2.5.5. Are there any
>> or such that you can give pointers to?
>This is in the ebulliently growing delayed-allocate and
>buffer_head-bypass patches at
>The implementation you're looking for is in dalloc-10-core.patch:
>mm.h and mm/page_alloc.c

extern struct page_state {
unsigned long nr_dirty;
unsigned long nr_locked;
} ____cacheline_aligned page_states[NR_CPUS];
This is perfect. Looks like, if a run summation over all the CPUs I will
get the total locked and dirty pages, provided mm.h macros are respected.
What is the outlook for inclusion of this patch in the main kernel? Do you
plan to submit or have been included yet?

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:24    [from the cache]
©2003-2011 Jasper Spaans