Re: [RFC][PATCH] proc: export more page flags in /proc/kpageflags



On Tue, Apr 14, 2009 at 03:54:40PM +0900, KOSAKI Motohiro wrote:
Hi

There are two use cases here:

First what is useful for the administrator as a general abstraction.
And what is useful for the kernel hacker for debugging.

The kernel hacker wants everything even if it's subject to change,
the administrator wants a higher level abstraction they can make
sense of and that doesn't change too often.

I think there's a case for both usages, but perhaps they
should be separated (in a public and a internal interface perhaps?)

My comments below are about abstractions for the first case.



On Tue, Apr 14, 2009 at 12:37:10PM +0800, KOSAKI Motohiro wrote:
Export the following page flags in /proc/kpageflags,
just in case they will be useful to someone:

- PG_swapcache
- PG_swapbacked
- PG_mappedtodisk
- PG_reserved

PG_reserved should be exported as PG_KERNEL or somesuch.

- PG_private
- PG_private_2
- PG_owner_priv_1

- PG_head
- PG_tail
- PG_compound

I would combine these three into a pseudo "large page" flag.


- PG_unevictable
- PG_mlocked

- PG_poison

PG_poison is also useful to export. But since it depends on my
patchkit I will pull a patch for that into the HWPOISON series.

- PG_unevictable
- PG_mlocked

this 9 flags shouldn't exported.
I can't imazine administrator use what purpose those flags.

I think an abstraced "PG_pinned" or somesuch flag that combines
page lock, unevictable, mlocked would be useful for the administrator.

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



Relevant Pages

  • Re: [RFC][PATCH] proc: export more page flags in /proc/kpageflags
    ... First what is useful for the administrator as a general abstraction. ... And what is useful for the kernel hacker for debugging. ... extra kernel flags available under CONFIG_DEBUG_KERNEL? ...
    (Linux-Kernel)
  • Re: [RFC][PATCH] proc: export more page flags in /proc/kpageflags
    ... First what is useful for the administrator as a general abstraction. ... And what is useful for the kernel hacker for debugging. ... I would combine these three into a pseudo "large page" flag. ...
    (Linux-Kernel)
  • Mail::IMAPClient: access without recent flag modification
    ... It works fine for me when I use it to access from my webmail, ... changing the recent flag of the messages correctly. ... The problem is that when I do this access (as administrator) the ... access of this mailboxes should not change the recent flags, ...
    (comp.lang.perl.modules)
  • Assertion
    ... I wrote a service that run as administrator. ... Is it possible to get the message of an uncontrolled assertion or message box (which as no MB_SERVICENOTIFICATION flag)? ... Newbie: ...
    (microsoft.public.vc.mfc)
  • Re: Pfbackup corrupts psts.
    ... the read flag, its the same as on the server, not read only ... protecteced and I have full security rights to it as administrator. ...
    (microsoft.public.outlook)