linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Hugepages for shm page cache (defrag)
@ 2011-07-06 19:31 Radosław Smogura
  2011-07-07  5:28 ` Andi Kleen
  0 siblings, 1 reply; 8+ messages in thread
From: Radosław Smogura @ 2011-07-06 19:31 UTC (permalink / raw)
  To: linux-mm

[-- Attachment #1: Type: Text/Plain, Size: 1124 bytes --]

Hello,

This is may first try with Linux patch, so please do not blame me too much. 
Actually I started with small idea to add MAP_HUGTLB for /dev/shm but it grew 
up in something more like support for huge pages in page cache, but according 
to documentation to submit alpha-work too, I decided to send this.

-------------------
Idea is that I created defrag method which tries to defragment page cache to 
huge page, I added one flag for such compound page, as I want to treat it 
little different, for example any put/get unless/test zero will increase it 
count, so page will be freed if all "sub-pages" will be freed. From other side 
each tail page may have it's own LRU (why I don't know).

There is ofocourse much work to do in shm to make it hugepage aware, map 
pte(pde) etc.

At this stage I don't have BUGs and I can make 2MB shm area, read and delete 
it.
Signed-off-by: Radosław Smogura (mail@smogura.eu)
-------------------

Any suggestion are welcome.

If it's to early work I want to say sorry. I hope I fullfiled all code/submit 
conventions.

Regards,
Radosław Smogura



[-- Attachment #2: defrag_page_cache_01.patch.gz --]
[-- Type: application/x-gzip, Size: 5064 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-08-07 17:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-06 19:31 Hugepages for shm page cache (defrag) Radosław Smogura
2011-07-07  5:28 ` Andi Kleen
2011-07-07 12:02   ` mail
2011-07-08  0:07     ` Hugh Dickins
2011-07-14 20:15       ` mail
2011-07-15 19:50         ` Hugh Dickins
2011-07-30 16:15           ` [PATCH] Changes how ref-count of compound pages are managed Radosław Smogura
2011-08-07 17:03   ` Hugepages for shm page cache (defrag) Radosław Smogura

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).