mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* memory foorprint of kernel modules
@ 2004-02-12 20:24 Gopi Palaniappan
  2004-02-12 20:45 ` Richard B. Johnson
  0 siblings, 1 reply; 3+ messages in thread
From: Gopi Palaniappan @ 2004-02-12 20:24 UTC (permalink / raw)
  To: linux-kernel

Is there an easy way to measure the memory/RAM footprint of dynamically
loaded kernel modules?
Are there tools similar to "pmap" for this purpose?

thanks,
Gopi
--
Motorola Inc.
Personal Communications Sector,
Urbana-Champaign Design Center,
1800 S. Oak St, Champaign, IL 61820.



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

* Re: memory foorprint of kernel modules
  2004-02-12 20:24 memory foorprint of kernel modules Gopi Palaniappan
@ 2004-02-12 20:45 ` Richard B. Johnson
  2004-02-12 22:34   ` Gopi Palaniappan
  0 siblings, 1 reply; 3+ messages in thread
From: Richard B. Johnson @ 2004-02-12 20:45 UTC (permalink / raw)
  To: Gopi Palaniappan; +Cc: linux-kernel

On Thu, 12 Feb 2004, Gopi Palaniappan wrote:

> Is there an easy way to measure the memory/RAM footprint of dynamically
> loaded kernel modules?
> Are there tools similar to "pmap" for this purpose?
>
> thanks,
> Gopi
> --
> Motorola Inc.
> Personal Communications Sector,
> Urbana-Champaign Design Center,
> 1800 S. Oak St, Champaign, IL 61820.
>

You might make some sense of /proc/ksyms...

This is for a module called ramdisk.

Script started on Thu Feb 12 15:41:10 2004
cd /proc
# strings ksyms | grep ramdisk
[ramdisk]
[ramdisk]
[ramdisk]
[ramdisk]
[ramdisk]
[ramdisk]
[ramdisk]
[ramdisk]
d4a19510 __insmod_ramdisk_S.bss_L4
[ramdisk]
d4a19100 __insmod_ramdisk_S.rodata_L563
[ramdisk]
[ramdisk]
[ramdisk]
d4a18000 __insmod_ramdisk_O/root/Message-Based/drivers/target/ramdisk.o_M4027E0AD_V132120
[ramdisk]
[ramdisk]
[ramdisk]
[ramdisk]
d4a18054 __insmod_ramdisk_S.text_L4237
[ramdisk]
[ramdisk]
[ramdisk]
[ramdisk]
d4a19398 __insmod_ramdisk_S.data_L5
[ramdisk]
# exit
exit
Script done on Thu Feb 12 15:41:45 2004



Cheers,
Dick Johnson
Penguin : Linux version 2.4.24 on an i686 machine (797.90 BogoMips).
            Note 96.31% of all statistics are fiction.



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

* RE: memory foorprint of kernel modules
  2004-02-12 20:45 ` Richard B. Johnson
@ 2004-02-12 22:34   ` Gopi Palaniappan
  0 siblings, 0 replies; 3+ messages in thread
From: Gopi Palaniappan @ 2004-02-12 22:34 UTC (permalink / raw)
  To: root; +Cc: linux-kernel

Hi Richard:
    I am not sure looking at the ksyms will give me an actual measure.
Lets take an example,
I have a driver "foo.o" that i insmod, lets say. If this driver uses kmalloc
or malloc to dynamically
utilize RAM space for its internal operation, I don't think your suggested
method will capture
that dynamic allocation of memory, am i correct?

  I want to get a real-time ram usage of a specified dynamically loaded
module.

thanks,
Gopi



On Thu, 12 Feb 2004, Gopi Palaniappan wrote:

> Is there an easy way to measure the memory/RAM footprint of dynamically
> loaded kernel modules?
> Are there tools similar to "pmap" for this purpose?
>
>

You might make some sense of /proc/ksyms...

This is for a module called ramdisk.

Script started on Thu Feb 12 15:41:10 2004
cd /proc
# strings ksyms | grep ramdisk
[ramdisk]
[ramdisk]
d4a19510 __insmod_ramdisk_S.bss_L4
[ramdisk]
d4a19100 __insmod_ramdisk_S.rodata_L563
d4a18000
__insmod_ramdisk_O/root/Message-Based/drivers/target/ramdisk.o_M4027E0AD_V13
2120
d4a18054 __insmod_ramdisk_S.text_L4237
d4a19398 __insmod_ramdisk_S.data_L5
[ramdisk]
# exit


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

end of thread, other threads:[~2004-02-12 22:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-12 20:24 memory foorprint of kernel modules Gopi Palaniappan
2004-02-12 20:45 ` Richard B. Johnson
2004-02-12 22:34   ` Gopi Palaniappan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®