| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
Generalize sub-diskname handling, like sdb1/sdb2, to not count the
usage twice with the aggregate top-diskname, like sdb.
Rely on /proc/diskstats being ordered, e.g. no sub-diskname precedes its
top-diskname.
Closes: #675
|
|
|
|
| |
Closes: #699
|
|
|
|
| |
Pass one less instead of subtracting one inside the function.
|
|
|
|
|
| |
The meter is intended to show *real* IO, which is significantly slower
than zram.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adds AGRP (autogroup) and ANI (autogroup nice) columns that
report the information from /proc/PID/autogroup, as well as
handlers for '{' and '}' to change the autogroup nice value.
This is guarded by /proc/sys/kernel/sched_autogroup_enabled
such that sampling and/or changing values wont be attempted
unless the kernel feature is enabled.
Fixes: #720
|
|
|
|
|
|
|
|
|
|
|
| |
Currently htop does not support offline CPUs and hot-swapping, e.g. via
echo 0 > /sys/devices/system/cpu/cpu2/online
Split the current single cpuCount variable into activeCPUs and
existingCPUs.
Supersedes: #650
Related: #580
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Add command line option to disable all system and process changing
features.
|
|
|
|
|
|
|
| |
None might be ambiguous whether we are dropping none or whether we keep
none.
Rename to off to make more clear this option does not drop any.
|
|
|
|
|
|
|
| |
When parsing the content of /proc/loadavg via fscanf(3), ensure client
passed parameters are set to sanitized values.
Related to: #581
|
|
|
|
|
|
| |
The variable 'dir' is checked in line 645:
if (!dir)
return AC_ERROR;
|
|
|
|
| |
Do not return false (= argument not handled) when actually handled
|
|
|
|
| |
Related to https://github.com/htop-dev/htop/pull/564
|
|
|
|
|
|
|
|
|
|
|
|
| |
The libcap code is Linux-specific so move it all below
the linux/ platform subdirectory. As this feature has
custom command-line long options I provide a mechanism
whereby each platform can add custom long options that
augment the main htop options. We'll make use this of
this with the pcp/ platform in due course to implement
the --host and --archive options there.
Related to https://github.com/htop-dev/htop/pull/536
|
| |
|
|
|
|
|
|
| |
Shared memory is less free-able than cached memory.
Show it beforehand.
|
|
|
|
|
|
|
|
| |
Shmem: Total memory used by shared memory (shmem) and tmpfs
Source: https://www.kernel.org/doc/Documentation/filesystems/proc.txt
Closes: #556
|
|\
| |
| | |
Fix integer sizing issues in the DiskIO Meter
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
On Linux kernels the size of the values exported for block
device bytes has used a 64 bit integer for quite some time
(2.6+ IIRC). Make the procfs value extraction use correct
types and change internal types used to rate convert these
counters (within the DiskIO Meter) 64 bit integers, where
appropriate.
|
|/
|
|
|
|
|
|
|
| |
On Linux kernels the size of the values exported for network
device bytes and packets has used a 64 bit integer for quite
some time (2.6+ IIRC). Make the procfs value extraction use
correct types and change internal types used to rate convert
these counters (within the NetworkIO Meter) 64 bit integers,
where appropriate.
|
|
|
|
|
|
|
|
| |
Subtract the total amount of huge page memory from total and used memory.
Restores behavior from #450 (see also #447)
Follow-up of 3d497a37
|
|
|
|
|
|
|
| |
Use similar calculation than procps.
Show AvailableMemory in text mode.
Use total minus available memory instead of manually computed used-
memory as fraction part in bar mode (if available).
|
|
|
|
|
|
|
|
| |
The State struct holds a pointer to the main process panel.
Use the distinct MainPanel type, to improve maintainability regrading
its usage.
This avoids usages of down-casts from Panel to MainPanel, only up-casts
from MainPanel to Panel are now required.
|
|
|
|
|
|
|
| |
At start, SysArchMeter calls the uname function to obtain the kernel
version and architecture. If available, the distro version is obtained
by calling lsb_release. The obtained values are stored in static
variables and used when updating the meter.
|
|
|
|
|
|
|
| |
Subtract hugepages from normal memory.
Add a HugePageMeter.
Closes: #447
|
|
|
|
|
| |
Otherwise fails with
"> linux/LinuxProcessList.c:889:20: error: ‘PATH_MAX’ undeclared (first use in this function)"
|
| |
|
|
|
|
|
|
|
| |
According to the Linux kernel documentation, "SwapCached" tracks "memory
that once was swapped out, is swapped back in but still also is
in the swapfile (if memory is needed it doesn't need to be swapped out
AGAIN because it is already in the swapfile. This saves I/O)."
|
| |
|
| |
|
|
|
|
|
|
| |
Use only one enum instead of a global and a platform specific one.
Drop Platform_numberOfFields global variable.
Set known size of Process_fields array
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Inspired by proposed Linux syscall
Avoid file descriptor leaks like 4af8c63f
|
|
|
|
| |
Use size of actual buffers instead of magic numbers
|
|
|
|
| |
Use percent throughout
|
|\ |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
Move platform-specific code out of the htop.c main function
and into the platform sub-directories - primarily this is
the Linux procfs path check and sensors setup/teardown; not
needed on any other platforms. No functional changes here.
|
| |
| |
| |
| | |
Closes: #325
|
|/ |
|
|
|
|
|
| |
Small changes from review - keep headers sorted and keep local
variable declarations at the top of source files.
|
|
|
|
|
| |
Consistent with everything else involving platform-specific
calls from core htop code.
|
|
|
|
|
| |
Show the CPU temperature in the CPU meter, like CPU frequency, instead
of using an extra Meter.
|