From: Jan T. <jt...@re...> - 2010-09-24 13:00:25
|
I've noticed that in some cases the hugeshmget05 testcase is not cleaning up properly after itself. It leaves hugepages reserved and does not free them. This could break further test runs. I think the problem is with signal handling. The testcase will do rm_shm() only if it ends up properly. In case it's being killed by SIGTERM signal (as seen from the testlog) the cleanup() function does not return shared memory. Without the patch I have to use ipcrm to remove all hugepages reserved and not returned. # grep -i unexpected RHEL-hugepage.run.log hugeshmget05 1 TBROK : Unexpected signal 15 received. # ipcs -m ------ Shared Memory Segments -------- key shmid owner perms bytes nattch status 0x7400ee08 3932160 root 600 4 0 0x7400edde 4620289 root 600 4 0 0x00000000 4980738 gdm 600 393216 2 dest 0x7400eddd 4587523 root 600 4 0 0x78002a3b 64552964 root 600 209715200 0 0x78002a38 64520197 root 600 209715200 0 # ipcrm -m 64552964 -m 64520197 With the patch the test returns hugepages back to the system even if it gets signal 15. Checked on RHEL5.5. Thanks, Jan |