Re: Somewhat OT: About modules coresize
On 05/21/2013 08:50 AM, Sergio Belkin wrote: I know that is somehat OT, but I was looking for trying to discover what does mean the size column of lsmod. Some people says is memory used by the module, but if I run strace lsmod I found that it takes a look to coresize files at /sys and read /usr/share/doc/kernel-doc-3.9.2/Documentation/ABI/testing/sysfs-module and it says Module size in bytes but if I see the filesize using ls don't match So what does really mean coresize? Modules drop unused memory after initialization so their core resident size doesn't have to correspond to filesize. -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: Somewhat OT: About modules coresize
2013/5/21 Przemek Klosowski przemek.klosow...@nist.gov On 05/21/2013 08:50 AM, Sergio Belkin wrote: I know that is somehat OT, but I was looking for trying to discover what does mean the size column of lsmod. Some people says is memory used by the module, but if I run strace lsmod I found that it takes a look to coresize files at /sys and read /usr/share/doc/kernel-doc-3.9.**2/Documentation/ABI/testing/** sysfs-module and it says Module size in bytes but if I see the filesize using ls don't match So what does really mean coresize? Modules drop unused memory after initialization so their core resident size doesn't have to correspond to filesize. -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.**org/mailman/listinfo/develhttps://admin.fedoraproject.org/mailman/listinfo/devel So is it memory used by the module? -- -- Sergio Belkin http://www.sergiobelkin.com Watch More TV http://sebelk.blogspot.com LPIC-2 Certified - http://www.lpi.org -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel
Re: Somewhat OT: About modules coresize
On Tue, May 21, 2013 at 11:16 AM, Sergio Belkin seb...@gmail.com wrote: 2013/5/21 Przemek Klosowski przemek.klosow...@nist.gov On 05/21/2013 08:50 AM, Sergio Belkin wrote: I know that is somehat OT, but I was looking for trying to discover what does mean the size column of lsmod. Some people says is memory used by the module, but if I run strace lsmod I found that it takes a look to coresize files at /sys and read /usr/share/doc/kernel-doc-3.9.2/Documentation/ABI/testing/sysfs-module and it says Module size in bytes but if I see the filesize using ls don't match So what does really mean coresize? Modules drop unused memory after initialization so their core resident size doesn't have to correspond to filesize. So is it memory used by the module? It is roughly the memory consumed by the module's code, data, and symbol sections. It does not include any memory the module has dynamically allocated. If you are curious how this is actually calculated, the code is in the layout_sections function in the kernel/module.c file in the kernel tree. josh -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel