Commit Graph
2370 Commits
Author SHA1 Message Date
Benoît Dejean 0580b2fb2c Linux >= 3.14 provides a "MemAvailable" field in /proc/meminfo which gives the
estimated amount of memory available for applications.
Use this to compute glibtop_mem::user.

https://bugzilla.gnome.org/show_bug.cgi?id=727543.
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/fs/proc/meminfo.c?id=34e431b0ae398fc54ea69ff85ec700722c9da773
2015-07-10 20:36:12 +02:00
Ting-Wei Lan a206cfc728 freebsd: rework system memory usage
Change the value of memory usage from:

  Used   = Wired
  Free   = Total - Wired
  Shared = 0
  Buffer = 0
  Cached = Cache
  User   = Wired - Cache
  Locked = Not Supported

To:

  Used   = Total - Free
  Free   = Free
  Shared = 0
  Buffer = Buf
  Cached = Cache
  User   = Active + Wired
  Locked = Not Supported

The left-hand side means fields in the glibtop_mem struct and the right-hand
side means the value showed by `top' command. This change should make the value
showed by gnome-system-monitor, which uses `User' field, become closer to
the real memory usage.

All sysctlbyname code in sysdeps/freebsd/mem.c has been moved to separate
functions to make the code cleaner.
2015-07-03 22:42:07 +08:00
Pedro AlbuquerqueandGNOME Translation Robot 58ca70eaee Updated Portuguese translation 2015-07-01 22:01:19 +00:00
Robert Roth 421419fdbf Fixed build problem with procmap example 2015-06-26 03:10:51 +03:00
Benoit DejeanandRobert Roth ebb7f9d5e2 Better debug message. 2015-06-26 02:57:42 +03:00
Benoit DejeanandRobert Roth 1f3b08e6dc Display self-timings using ps. 2015-06-26 02:57:42 +03:00
Benoit DejeanandRobert Roth a870dfc8f2 Print more fields about each filesystem. 2015-06-26 02:57:42 +03:00
Benoit DejeanandRobert Roth e0244ad3fc Don't try to print a NULL hash_table. 2015-06-26 02:57:41 +03:00
Benoit DejeanandRobert Roth 1156794b33 Add command tracing in glibtop_call_l when debugging. 2015-06-26 02:57:41 +03:00
Benoit DejeanandRobert Roth 874771ec1c Ignore more output files. 2015-06-26 02:57:41 +03:00
Benoit DejeanandRobert Roth 16f262985d Use glibtop_warn_r instead of fprintf. 2015-06-26 02:57:41 +03:00
Benoit DejeanandRobert Roth 0a94dc7992 Display inode number without zero padding. 2015-06-26 02:57:41 +03:00
Benoit DejeanandRobert Roth 50b5dea402 Implement dev/inode for mapped files on ZFS. 2015-06-26 02:57:41 +03:00
Benoit DejeanandRobert Roth f4b23ef0c6 Split the code that works only with UFS inode. Will ease new code for ZFS. 2015-06-26 02:57:41 +03:00
Benoit DejeanandRobert Roth 1f41349a7e Fix format for permissions. Display mappings' sizes. Avoid duplicating formatting code. 2015-06-26 02:57:41 +03:00
Benoit DejeanandRobert Roth 548f104f35 If no argument is given, defaults to self. When self-testing, try to mmap some files as an example. 2015-06-26 02:57:41 +03:00
Benoit DejeanandRobert Roth 4808aac8ef Make libgtop_server2 link against its libgtop. 2015-06-26 02:57:41 +03:00
Benoit DejeanandRobert Roth f04ce61b80 Run server_command instead of hardcoded LIBGTOP_SERVER. 2015-06-26 02:57:41 +03:00
Benoit DejeanandRobert Roth c7f7e5a1c6 Set the FSUSAGE_(READ|WRITE) flags only we managed to get something. Currently, it doesn't seem to work on ZFS. 2015-06-26 02:57:41 +03:00
Benoit DejeanandRobert Roth e2348c24a0 When pretty-printing an array, don't display 0 elements. 2015-06-26 02:57:41 +03:00
Benoit DejeanandRobert Roth f76b37be1b Rename NEED_LIBGTOP to LIBGTOP_NEED_SERVER. 2015-06-26 02:57:41 +03:00
Benoit DejeanandRobert Roth b2fee3e111 No special case for pid == 0. As of 2015, with FreeBSD 10.1-RELEASE #0 r274401 on amd64, this really works and sets the name to "kernel" for pid == 0. 2015-06-26 02:57:41 +03:00
Benoit DejeanandRobert Roth 7b2416a8d1 Use LIBGTOP_ENABLE_DEBUG instead of undefined SLAVE_DEBUG. 2015-06-26 02:57:41 +03:00
Benoit DejeanandRobert Roth d006da7e54 Drop dead file, 2015-06-26 02:57:41 +03:00
Benoit DejeanandRobert Roth a93dc2526d The DEBUG macro enabled by --enable-debug is actually LIBGTOP_ENABLE_DEBUG. 2015-06-26 02:57:41 +03:00
Benoit DejeanandRobert Roth a3a16707b5 Enable silent build. 2015-06-26 02:57:41 +03:00
Robert Roth fd53595189 Prepare 2.31.3 2015-06-22 22:43:35 +03:00
Benoit DejeanandTing-Wei Lan 0057bbbc47 Don't set GLIBTOP_PROC_MEM_SHARE because it's not implemented anymore.
https://bugzilla.gnome.org/show_bug.cgi?id=744890
2015-06-21 10:57:11 +08:00
Benoit DejeanandTing-Wei Lan e6d776ee61 It doesn't make any sense to count as shared each and every mmaped file. Disable that code while we figure how to really do it.
https://bugzilla.gnome.org/show_bug.cgi?id=744890
2015-06-21 10:56:39 +08:00
Juan RPandRobert Roth c68e077909 Implemented procaffinity for netBSD.
https://bugzilla.gnome.org/show_bug.cgi?id=553713
2015-06-20 03:35:56 +03:00
Juan RPandRobert Roth 72e46fc6b4 Define some GLIBTOP_SUID constants to build procaffinity on NetBSD
https://bugzilla.gnome.org/show_bug.cgi?id=553713
2015-06-20 03:33:42 +03:00
Juan RPandRobert Roth 2ea8a156f3 Enable procaffinity.c on sysdeps/bsd/Makefile.am.
(Please also double check the author and subject.)

https://bugzilla.gnome.org/show_bug.cgi?id=553713
2015-06-20 03:33:42 +03:00
Ting-Wei Lan 40e1a86d52 freebsd: Add fdescfs to the ignored filesystem list
fdescfs is the filesystem mounted on /dev/fd to provide access to file
descriptors via filsystem paths. It is not a real filesystem used on disks.

https://bugzilla.gnome.org/show_bug.cgi?id=748790
2015-06-14 14:19:24 +08:00
Cédric ValmaryandGNOME Translation Robot a101d6b27a Updated Occitan translation 2015-04-30 07:47:26 +00:00
Robert Roth 9770db12d2 Let's stick to the GNOME release process
To stick to the GNOME release train from now on, we start with an
unstable number and the next stable will be released along with
GNOME 3.18.0.
2015-04-02 06:50:28 +03:00
Robert Roth a61052dc59 Version bump required to 2.32.0 2015-03-21 20:13:08 +02:00
Samir RibicandGNOME Translation Robot 8985e7e239 Updated Bosnian translation 2015-03-13 21:02:02 +00:00
Robert Roth 1c1449306b Added some more files to .gitignore 2015-01-03 15:36:57 +02:00
Jasper St. PierreandRobert Roth 3f8f65386e Make some APIs that return struct introspectable
In order to do this, we need to define some boxed types. So we need
to add a new dependency, GObject, to GTop.

https://bugzilla.gnome.org/show_bug.cgi?id=663265
2015-01-03 15:32:56 +02:00
Jasper St. PierreandRobert Roth 30d29e624b Warn on introspection errors
https://bugzilla.gnome.org/show_bug.cgi?id=663265
2015-01-03 15:32:55 +02:00
Ryan LortieandRobert Roth bea8b6790a stub sysdep: add some missing files
https://bugzilla.gnome.org/show_bug.cgi?id=724196
2015-01-03 15:12:10 +02:00
Ryan LortieandRobert Roth 5e6c25d29d stub sysdep: add missing defines
https://bugzilla.gnome.org/show_bug.cgi?id=724196
2015-01-03 15:12:10 +02:00
Ryan LortieandRobert Roth b7e1219e0a stub sysdep: fix mismatched function vs. prototype
https://bugzilla.gnome.org/show_bug.cgi?id=724196
2015-01-03 15:12:10 +02:00
Jasper Lievisse Adriaanse 057dcf77d6 Sync with OpenBSD's uvm_extern.h changes 2014-11-18 19:33:38 +01:00
Jasper Lievisse Adriaanse b7edd1542e dkstat.h is going away on OpenBSD, so use sys/sched.h instead for CP_* 2014-09-08 09:36:07 +02:00
Jasper Lievisse Adriaanse 7326f8816d Add SMP support for OpenBSD 2014-09-01 15:21:31 +02:00
Robert Roth ed1b3f5834 Use configure.ac instead of configure.in 2014-08-20 05:25:50 +03:00
Robert Roth 7a3414d002 Update old FSF address.
https://bugzilla.gnome.org/show_bug.cgi?id=721514
2014-08-20 04:44:27 +03:00
Märt PõderandRobert Roth 564506bb0d Add annotations to get_proclist* to make Python bindings work.
https://bugzilla.gnome.org/show_bug.cgi?id=734170
2014-08-20 04:23:56 +03:00
Andre Klapper 9e0843064d doap: add <programming-language> 2014-07-31 21:05:19 +02:00