Hello Community, I was browsing the tree and in slub.c/ function kfree(), I found "PageSlab" I could not find its definition anywhere. Also, googling about it did not yield much help except for pointers to various patches _using_ this. Can anyone explain what it is and where it is defined (if at all it has a definition). -- Regards, Sarbojit
Hi... On Fri, Jul 13, 2012 at 7:35 PM, Sarbojit Ganguly <unixman.linuxboy@gmail.com> wrote:
Hello Community,
I was browsing the tree and in slub.c/ function kfree(), I found "PageSlab" I could not find its definition anywhere.
The closest I can find is (thanks to Google) : http://www.kneuro.net/cgi-bin/lxr/http/source/include/linux/mm.h?a=alpha#L21... But it's 2.4.0, yup I know. Therefore, I guess, in new kernel versions, this function must be created using gcc compound mark (that ## thing, you know). -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com
On Fri, Jul 13, 2012 at 8:35 PM, Sarbojit Ganguly < unixman.linuxboy@gmail.com> wrote:
Hello Community,
I was browsing the tree and in slub.c/ function kfree(), I found "PageSlab" I could not find its definition anywhere.
Also, googling about it did not yield much help except for pointers to various patches _using_ this.
Can anyone explain what it is and where it is defined (if at all it has a definition).
I am not sure what is your motive behind asking this question - PageSlab can mean many different thing, but one thing in common is the concept of SLAB allocator: http://en.wikipedia.org/wiki/Slab_allocation http://www.ibm.com/developerworks/linux/library/l-linux-slab-allocator/ And the first original paper from Bonwick: http://www.ezdoum.com/upload/20/20020412235505/bonwick94slab.pdf And here is a SLAB implementation by itself (for easier reading and reuse): http://code.google.com/p/memslab/ And this page is for detailed description on SLAB: http://www.kernel.org/doc/gorman/html/understand/understand011.html http://lwn.net/Articles/320556/ (several variation of SLAB described, including the SLUB u mentioned above). which is used in several OS (Unix mainly). and this blog teaches u how to analyze SLAB usage patterns: http://flylib.com/books/en/4.454.1.55/1/ http://3.bp.blogspot.com/_Z4Xjc19r9Dw/TSM3q2guB0I/AAAAAAAAAUo/1a_eQQGeXOo/s1... etc...
-- Regards, Sarbojit
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Regards, Peter Teoh
Hello Peter, Thank you for the extensive reply. I was studying memory management and stumbled upon a function "PageSlab()" whose definition I could not find anywhere. Hence I asked. The last blog link was really good, bookmarked it. Thanks again! On 17 July 2012 06:05, Peter Teoh <htmldeveloper@gmail.com> wrote:
On Fri, Jul 13, 2012 at 8:35 PM, Sarbojit Ganguly <unixman.linuxboy@gmail.com> wrote:
Hello Community,
I was browsing the tree and in slub.c/ function kfree(), I found "PageSlab" I could not find its definition anywhere.
Also, googling about it did not yield much help except for pointers to various patches _using_ this.
Can anyone explain what it is and where it is defined (if at all it has a definition).
I am not sure what is your motive behind asking this question - PageSlab can mean many different thing, but one thing in common is the concept of SLAB allocator:
http://en.wikipedia.org/wiki/Slab_allocation
http://www.ibm.com/developerworks/linux/library/l-linux-slab-allocator/
And the first original paper from Bonwick:
http://www.ezdoum.com/upload/20/20020412235505/bonwick94slab.pdf
And here is a SLAB implementation by itself (for easier reading and reuse):
http://code.google.com/p/memslab/
And this page is for detailed description on SLAB:
http://www.kernel.org/doc/gorman/html/understand/understand011.html
http://lwn.net/Articles/320556/ (several variation of SLAB described, including the SLUB u mentioned above).
which is used in several OS (Unix mainly).
and this blog teaches u how to analyze SLAB usage patterns:
http://flylib.com/books/en/4.454.1.55/1/
http://3.bp.blogspot.com/_Z4Xjc19r9Dw/TSM3q2guB0I/AAAAAAAAAUo/1a_eQQGeXOo/s1...
etc...
-- Regards, Sarbojit
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- Regards, Peter Teoh
-- Regards, Sarbojit
participants (3)
-
Mulyadi Santosa -
Peter Teoh -
Sarbojit Ganguly