giampaolo / psutil

Cross-platform lib for process and system monitoring in Python
BSD 3-Clause "New" or "Revised" License
10.25k stars 1.38k forks source link

Expose rx/tx queue length instead of throwing it away #269

Open giampaolo opened 10 years ago

giampaolo commented 10 years ago

From sidnei.d...@gmail.com on May 31, 2012 22:02:58

The rx/tx queue length is currently thrown away, but it might be helpful to 
return it for certain types of applications. 
https://code.google.com/p/psutil/source/browse/trunk/psutil/_pslinux.py?r=1313#785
 The next item after status is 'tx_queue:rx_queue'.

Original issue: http://code.google.com/p/psutil/issues/detail?id=269

giampaolo commented 10 years ago

From g.rodola on June 02, 2012 06:19:32

Point is that's not portable across platforms.
Out of curiosity, in what circumstances that can be useful?
giampaolo commented 10 years ago

From sidnei.d...@gmail.com on June 02, 2012 08:10:54

There's already precedent for non-portable things in get_cpu_times(), which 
returns iowait for linux but not for anything else.

My use case for it is to monitor a web application to make sure it's able to 
keep up with incoming requests, keeping the rx queue to a minimal.
giampaolo commented 10 years ago

From g.rodola on December 11, 2012 19:41:49

I think this is reasonable.

Status: Accepted