View Single Post
Old 03-11-2016, 07:36 AM   #32
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Ah, I forgot, this is a 3.0.x series kernel - we can throttle that cpu hog if we want to:
Code:
[root@kindle root]# cat /proc/20321/limits
Limit                     Soft Limit           Hard Limit           Units     
Max cpu time              unlimited            unlimited            seconds   
Max file size             unlimited            unlimited            bytes     
Max data size             unlimited            unlimited            bytes     
Max stack size            8388608              unlimited            bytes     
Max core file size        0                    unlimited            bytes     
Max resident set          unlimited            unlimited            bytes     
Max processes             4016                 4016                 processes 
Max open files            1024                 4096                 files     
Max locked memory         65536                65536                bytes     
Max address space         unlimited            unlimited            bytes     
Max file locks            unlimited            unlimited            locks     
Max pending signals       4016                 4016                 signals   
Max msgqueue size         819200               819200               bytes     
Max nice priority         0                    0                    
Max realtime priority     0                    0                    
Max realtime timeout      unlimited            unlimited            us
Hmm...
It (cvm parent thread) is only showing me a screensaver, and:
Code:
[root@kindle root]# ls -l /proc/20321/fdinfo | wc -l
741
and it has 741 file descriptors open (almost its soft limited number).

Edit:
If the author of cvm forgot to close any unused file descriptors of the 3 standard file descriptors per thread -
HTOP showed 243 threads, *3 == 729 file descriptors.
I think I see a relationship there.

And if the author of cvm decided to poll that many file descriptors . . . .
Well, see:
https://daniel.haxx.se/docs/poll-vs-select.html
and the reference it links to.

#9600

Last edited by knc1; 03-11-2016 at 08:18 AM.
knc1 is offline   Reply With Quote