/proc/slabinfo update issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

When the file /proc/slabinfo does get updated?

I started new process and I was thinking mm_struct active objects should be increased but it stays constant.

Program:
Hello.c
int main(){
        printf("Welcome to SI-LUNX\n");
        sleep(100);
        return 0;
}

Output Before staring process:
#cat /proc/slabinfo | grep mm_struct
mm_struct             52     64    512    8    1 : tunables    0    0    0 : slabdata      8      8      0
# ps -fu root | wc
     70     615    4645

Started process in another shell (shell was already open)  /home/manoj/hello

Output after Starting process
# cat /proc/slabinfo | grep mm_struct
mm_struct             52     64    512    8    1 : tunables    0    0    0 : slabdata      8      8      0
# ps -fu root | wc
     71     623    4711

Is it possible that parent(shell) and child (hello) using same mm_struct ?
I also tried running /home/manoj/hello&, but the result is same.

Is there something that I need to enable in my config file? Or there is a possible bug with update on /proc/slabinfo?

Note: /sys/kernel/slab/mm_struct/objects also shows same result.

Other Information:
#uname -r
2.6.25
# cat /home/manoj/build/kernel/.config | grep SLUB
CONFIG_SLUB_DEBUG=y
CONFIG_SLUB=y
CONFIG_SLUB_DEBUG_ON=y
CONFIG_SLUB_STATS=y
# cat /home/manoj/build/kernel/.config | grep SLAB
# CONFIG_SLAB is not set
CONFIG_SLABINFO=y

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux