It just occurred to me that I was timing sudo in my last post, so here
are the sudo-less numbers:

root@steve-ubuntu:~# time for pid in $(pidof apache2); do find "/proc/$pid/fd" 
-lname "/var/lib/php5/*" -print -exec touch {} \; ; done
/proc/30005/fd/21

real    0m0.042s
user    0m0.016s
sys     0m0.026s


root@steve-ubuntu:~# time /usr/bin/lsof -w -l +d /var/lib/php5
COMMAND   PID     USER   FD   TYPE DEVICE SIZE/OFF   NODE NAME
apache2 30005       33   21uW  REG    8,3        0 268283 
/var/lib/php5/sess_r5mhepbrhgmgsdnvkj72ppoc37

real    0m1.076s
user    0m0.517s
sys     0m0.846s


root@steve-ubuntu:~# time /usr/bin/lsof -w -l -a +d /var/lib/php5 -c apache2
COMMAND   PID     USER   FD   TYPE DEVICE SIZE/OFF   NODE NAME
apache2 30005       33   21uW  REG    8,3        0 268283 
/var/lib/php5/sess_r5mhepbrhgmgsdnvkj72ppoc37

real    0m0.070s
user    0m0.032s
sys     0m0.052s

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1356113

Title:
  PHP5 session clean cron job causes OOM

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1356113/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to