search for: page_migratable_mapcount_value

Displaying 9 results from an estimated 9 matches for "page_migratable_mapcount_value".

2015 Jun 26
0
[RFCv2 1/5] mm/compaction: enable driver page migration
...diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h index 91b7f9b..c8a66de 100644 --- a/include/linux/page-flags.h +++ b/include/linux/page-flags.h @@ -649,6 +649,25 @@ static inline void __ClearPageBalloon(struct page *page) atomic_set(&page->_mapcount, -1); } +#define PAGE_MIGRATABLE_MAPCOUNT_VALUE (-255) + +static inline int PageMigratable(struct page *page) +{ + return atomic_read(&page->_mapcount) == PAGE_MIGRATABLE_MAPCOUNT_VALUE; +} + +static inline void __SetPageMigratable(struct page *page) +{ + VM_BUG_ON_PAGE(atomic_read(&page->_mapcount) != -1, page); + atomic_set(&...
2015 Jun 26
8
[RFCv2 0/5] enable migration of driver pages
Hello, This series try to enable migration of non-LRU pages, such as driver's page. My ARM-based platform occured severe fragmentation problem after long-term (several days) test. Sometimes even order-3 page allocation failed. It has memory size 512MB ~ 1024MB. 30% ~ 40% memory is consumed for graphic processing and 20~30 memory is reserved for zram. I found that many pages of GPU driver
2015 Jun 26
8
[RFCv2 0/5] enable migration of driver pages
Hello, This series try to enable migration of non-LRU pages, such as driver's page. My ARM-based platform occured severe fragmentation problem after long-term (several days) test. Sometimes even order-3 page allocation failed. It has memory size 512MB ~ 1024MB. 30% ~ 40% memory is consumed for graphic processing and 20~30 memory is reserved for zram. I found that many pages of GPU driver
2015 Jun 02
9
[RFC 0/4] enable migration of non-LRU pages
Hello, This series try to enable migration of non-LRU pages, such as driver's page. My ARM-based platform occured severe fragmentation problem after long-term (several days) test. Sometimes even order-3 page allocation failed. It has memory size 512MB ~ 1024MB. 30% ~ 40% memory is consumed for graphic processing and 20~30 memory is reserved for zram. I found that many pages of GPU driver
2015 Jun 02
9
[RFC 0/4] enable migration of non-LRU pages
Hello, This series try to enable migration of non-LRU pages, such as driver's page. My ARM-based platform occured severe fragmentation problem after long-term (several days) test. Sometimes even order-3 page allocation failed. It has memory size 512MB ~ 1024MB. 30% ~ 40% memory is consumed for graphic processing and 20~30 memory is reserved for zram. I found that many pages of GPU driver
2015 Jun 03
1
[RFC 2/4] mm/balloon: apply driver page migratable into balloon driver
...ALUE); > -} > - > -static inline void __ClearPageBalloon(struct page *page) > -{ > - VM_BUG_ON_PAGE(!PageBalloon(page), page); > - atomic_set(&page->_mapcount, -1); > -} > - Why you're killing this? This mark is exported into userspace. > #define PAGE_MIGRATABLE_MAPCOUNT_VALUE (-256) > > static inline int PageMigratable(struct page *page) > diff --git a/include/uapi/linux/kernel-page-flags.h b/include/uapi/linux/kernel-page-flags.h > index a6c4962..a6a3c4b 100644 > --- a/include/uapi/linux/kernel-page-flags.h > +++ b/include/uapi/linux/kernel-page-flag...
2015 Jun 03
1
[RFC 2/4] mm/balloon: apply driver page migratable into balloon driver
...ALUE); > -} > - > -static inline void __ClearPageBalloon(struct page *page) > -{ > - VM_BUG_ON_PAGE(!PageBalloon(page), page); > - atomic_set(&page->_mapcount, -1); > -} > - Why you're killing this? This mark is exported into userspace. > #define PAGE_MIGRATABLE_MAPCOUNT_VALUE (-256) > > static inline int PageMigratable(struct page *page) > diff --git a/include/uapi/linux/kernel-page-flags.h b/include/uapi/linux/kernel-page-flags.h > index a6c4962..a6a3c4b 100644 > --- a/include/uapi/linux/kernel-page-flags.h > +++ b/include/uapi/linux/kernel-page-flag...
2015 Jun 02
0
[RFC 2/4] mm/balloon: apply driver page migratable into balloon driver
...M_BUG_ON_PAGE(atomic_read(&page->_mapcount) != -1, page); - atomic_set(&page->_mapcount, PAGE_BALLOON_MAPCOUNT_VALUE); -} - -static inline void __ClearPageBalloon(struct page *page) -{ - VM_BUG_ON_PAGE(!PageBalloon(page), page); - atomic_set(&page->_mapcount, -1); -} - #define PAGE_MIGRATABLE_MAPCOUNT_VALUE (-256) static inline int PageMigratable(struct page *page) diff --git a/include/uapi/linux/kernel-page-flags.h b/include/uapi/linux/kernel-page-flags.h index a6c4962..a6a3c4b 100644 --- a/include/uapi/linux/kernel-page-flags.h +++ b/include/uapi/linux/kernel-page-flags.h @@ -31,7 +31,7 @@ #de...
2015 Jun 03
0
[RFC 2/4] mm/balloon: apply driver page migratable into balloon driver
...ine void __ClearPageBalloon(struct page *page) >> -{ >> - VM_BUG_ON_PAGE(!PageBalloon(page), page); >> - atomic_set(&page->_mapcount, -1); >> -} >> - > > Why you're killing this? This mark is exported into userspace. > >> #define PAGE_MIGRATABLE_MAPCOUNT_VALUE (-256) >> >> static inline int PageMigratable(struct page *page) >> diff --git a/include/uapi/linux/kernel-page-flags.h b/include/uapi/linux/kernel-page-flags.h >> index a6c4962..a6a3c4b 100644 >> --- a/include/uapi/linux/kernel-page-flags.h >> +++ b/include/ua...