summaryrefslogtreecommitdiff
path: root/psutil/_pslinux.py
Commit message (Collapse)AuthorAgeFilesLines
* [FreeBSD] process resource limits (#1859) (#809)Giampaolo Rodola2020-10-231-6/+0
|
* linux / cpu_count phys: take depreated */thread_siblings_list intoGiampaolo Rodola2020-10-171-9/+15
| | | | | | | | | | | | account /sys/devices/system/cpu/cpu[0-9]*/topology/thread_siblings_list is deprecated /sys/devices/system/cpu/cpu[0-9]*/topology/core_cpus_list is the new name also add test which makes sure method 1 and 2 return the same result
* Merge branch 'master' of github.com:giampaolo/psutilGiampaolo Rodola2020-10-171-4/+4
|\
| * Fix cpu_count_physical() returning wrong values on systems with SMT or more ↵Vincent A. Arcila2020-10-171-4/+4
| | | | | | | | than one processor (#1727)
* | increase test coverageGiampaolo Rodola2020-10-171-1/+1
|/
* remove old unused code (#1843)Arnon Yaari2020-10-051-4/+0
| | | Co-authored-by: Arnon Yaari <arnony@infinidat.com>
* sensors_battery() only return None if percentage is undetermined (#1838)aristocratos2020-09-301-3/+2
|
* Expanded battery sensor detection (#1837)aristocratos2020-09-271-4/+11
|
* update doc for #1830 (net_if_stats() isup check if NIC is running)Giampaolo Rodola2020-09-211-1/+1
|
* Backport python 3 super() (#1733)Giampaolo Rodola2020-04-241-1/+1
|
* Remove useless assignment (#1728)kaiix2020-04-161-1/+0
|
* Fix handling /proc/cpuinfo without tabs (#1726)Michał Górny2020-04-141-1/+1
| | | | | | | /proc/cpuinfo uses spaces rather than tabs on ia64. Since there seems not to be any reason to require specific kind of whitespace before ':' on 'cpu mhz' line, just split on ':'. See: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/ia64/kernel/setup.c#n700
* #1681, revert 00a3398Giampaolo Rodola2020-02-131-25/+0
|
* small refactoring to accomodate #1691Giampaolo Rodola2020-02-131-5/+6
|
* fix #1627: [Linux] Process.memory_maps() can raise KeyErrorGiampaolo Rodola2020-02-111-1/+1
|
* small refactGiampaolo Rodola2020-02-111-3/+2
|
* fix #1681 / linux / disk_partitions: show swapGiampaolo Rodola2020-02-111-0/+27
|
* [Linux] disk_io_counters() ValueError when parsing /sys/block (#1684)Giampaolo Rodola2020-02-091-1/+1
| | | | | | | | | | | | | | | | | | | Fixes: ``` ====================================================================== ERROR: psutil.tests.test_linux.TestSystemDiskIoCounters.test_emulate_use_sysfs ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/giampaolo/svn/psutil/psutil/tests/test_linux.py", line 1195, in test_emulate_use_sysfs wsysfs = psutil.disk_io_counters(perdisk=True) File "/home/giampaolo/svn/psutil/psutil/__init__.py", line 2065, in disk_io_counters rawdict = _psplatform.disk_io_counters(**kwargs) File "/home/giampaolo/svn/psutil/psutil/_pslinux.py", line 1124, in disk_io_counters for entry in gen: File "/home/giampaolo/svn/psutil/psutil/_pslinux.py", line 1110, in read_sysfs wbytes, wtime, _, busy_time, _) = map(int, fields) ValueError: too many values to unpack (expected 11) ```
* fix #1650 [Linux] sensors_temperatures() no longer emit warnings on file not ↵Giampaolo Rodola2020-02-091-2/+2
| | | | found (print debug msg instead)
* Properly handle PID type in C (#1672)Giampaolo Rodola2020-01-291-3/+1
|
* Future-proof disk_io_counters on Linux. (#1665)Mike Hommey2020-01-171-1/+2
| | | | | | | | | | Kernel 5.5 added 2 more fields to /proc/diskstats, requiring another change after the one for 4.18, which recently added 4 fields. At this point in time, the meaning of the existing fields is unlikely to change, and psutil is not using any of the newer ones. By considering 18 fields and more to have the current layout, psutil will continue to work as newer kernels add more fields.
* move custom exceptions in _common.pyGiampaolo Rodola2020-01-021-7/+3
|
* lintGiampaolo Rodola2019-12-281-1/+2
|
* sensors_temperatures: also search /sys/devices/platform/coretemp.* for ↵Javad Karabi2019-12-281-0/+1
| | | | temperatures (#1648)
* updat HISTORYGiampaolo Rodola2019-11-221-3/+2
|
* linux, cmdline(), fix for #1179, comment 552984549: sometimes string ends ↵Giampaolo Rodola2019-11-221-1/+8
| | | | with null byte but args are separated by spaces
* fix #1126: cpu_affinity() segfaults on CentOS 5Giampaolo Rodola2019-10-101-30/+34
| | | | | | Remove cpu_affinity() support for CentOS 5 (it's 8 years old anyway); remove the dual implementation. Recent manylinux versions should use CentOS 6.
* fix #1527: Linux process CPU iowait timeGiampaolo Rodola2019-09-071-1/+7
|
* PEP-3151: backport FS exceptions to Python 2 (#1544)Giampaolo Rodola2019-06-281-65/+50
|
* Connection family/type are not converted to enums (#1535)Giampaolo Rodola2019-06-141-1/+1
|
* Revert "Add handling of missing space in meminfo output (#1517)" (#1531)Giampaolo Rodola2019-06-121-3/+2
| | | This reverts commit 6b994c625db2abaaadf58a0425f9daaf3e4ad9e5.
* Add handling of missing space in meminfo output (#1517)xiaclo2019-06-121-2/+3
|
* small refactoringGiampaolo Rodola2019-05-141-1/+1
|
* remove catching IOError; let the test fail and adjust it laterGiampaolo Rodola2019-04-261-11/+5
|
* Fix cpu freq (#1496)David Brochart2019-04-261-5/+17
|
* fix #1493: [Linux] cpu_freq(): handle the case where ↵Giampaolo Rodola2019-04-261-1/+1
| | | | /sys/devices/system/cpu/cpufreq/ exists but is empty.
* Revert "Fix cpu_freq (#1493)" (#1495)Giampaolo Rodola2019-04-251-7/+1
| | | This reverts commit 01e00a6629a78a7277aac627c8b025cb753d6fee.
* Fix cpu_freq (#1493)David Brochart2019-04-251-1/+7
|
* Update cpu_freq to return 0 for max/min if not available (#1487)Alex Manuskin2019-04-251-1/+1
|
* refactor/move some utilities into _common.pyGiampaolo Rodola2019-04-121-15/+2
|
* Linux / CPU freq, fixes #1481Alex Manuskin2019-04-051-15/+11
|
* fix linux testsfix-testsGiampaolo Rodola2019-04-051-2/+2
|
* refactor ionice() on LinuxGiampaolo Rodola2019-04-041-6/+3
|
* refactor ionice() on LinuxGiampaolo Rodola2019-04-041-30/+9
|
* #1404: fix regression not returning CPUs > 9Giampaolo Rodola2019-04-021-1/+2
|
* Fix corner case when /etc/mtab doesn't exist and procfs=/proc (#1470)Cedric Lamoriniere2019-03-281-4/+4
| | | | | | | | | | In some Linux configurations the `/etc/mtab` does not exist but the procfs_path is equal to `/proc`. With the fix done for the issue #1307, the described configuration didn't work. This Commit introduce an additional check that verifies if the `/etc/mtab` file exists before using it, else it defaults to `<procfs_path>/self/mounts` Signed-off-by: cedric lamoriniere <cedric.lamoriniere@datadoghq.com>
* issue #1404 / linux / phys CPUs countGiampaolo Rodola2019-03-141-2/+12
| | | | | determine CPUs from /sys/devices/system/cpu/cpu[0-9]/topology/core_id in case /proc/cpuinfo does not provide this info
* fix #1447: we weren't use @wrap_exceptions around oneshot() (doh\!)Giampaolo Rodola2019-03-031-0/+3
|
* _assert_alive() refactor (linux)Giampaolo Rodola2019-02-271-9/+11
|
* fix #1402: move psutil exceptions back into __init__.pyGiampaolo Rodola2019-02-041-3/+7
|