RE: mm: how to check for kernel pages

2007-02-04 Thread David Schwartz
> Ok, so what everything should be checked? > > - PageReserved > - PageSlab > - PageLocked > - PageBuddy > - PageCompound > - PageNosave > - PageNosaveFree > - kernel page > - userspace active DMA as you've mentioned. But I don't know how to test > it Perhaps I'm missing something obvious, but

Re: mm: how to check for kernel pages

2007-02-04 Thread Michal Hocko
On Sun, Feb 04, 2007 at 04:45:51PM +0100, Arjan van de Ven wrote: > > Sorry for not being more precise. As a part of my thesis work I need to > > migrate pages. I greatly use mm/migrate.c code. > > I assume that not all pages can be migrated - especially those used by > > kernel (where direct vir

Re: mm: how to check for kernel pages

2007-02-04 Thread Arjan van de Ven
On Sun, 2007-02-04 at 16:33 +0100, Michal Hocko wrote: > On Sun, Feb 04, 2007 at 02:57:30PM +0100, Arjan van de Ven wrote: > > On Sun, 2007-02-04 at 12:02 +0100, Michal Hocko wrote: > > > Hi, > > > is there any effective and fast way how to find out whether page > > > given by its page frame number

Re: mm: how to check for kernel pages

2007-02-04 Thread Michal Hocko
On Sun, Feb 04, 2007 at 02:57:30PM +0100, Arjan van de Ven wrote: > On Sun, 2007-02-04 at 12:02 +0100, Michal Hocko wrote: > > Hi, > > is there any effective and fast way how to find out whether page > > given by its page frame number is currenly used by (mapped by) kernel? > > what do you want to

Re: mm: how to check for kernel pages

2007-02-04 Thread Arjan van de Ven
On Sun, 2007-02-04 at 12:02 +0100, Michal Hocko wrote: > Hi, > is there any effective and fast way how to find out whether page > given by its page frame number is currenly used by (mapped by) kernel? what do you want to use this for? The answer to your question greatly depends on that... Specifi

mm: how to check for kernel pages

2007-02-04 Thread Michal Hocko
Hi, is there any effective and fast way how to find out whether page given by its page frame number is currenly used by (mapped by) kernel? At the time of checking I can rely that such page: - is not buddy allocator page and also not on per CPU lists - is not compound page