[libgtop] It doesn't make any sense to count as shared each and every mmaped file. Disable that code while we
- From: Ting-Wei Lan <lantw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgtop] It doesn't make any sense to count as shared each and every mmaped file. Disable that code while we
- Date: Sun, 21 Jun 2015 02:59:13 +0000 (UTC)
commit e6d776ee617a48c9b809e550fb4ec0bc154634aa
Author: Benoit Dejean <bdejean gmail com>
Date: Fri Feb 27 22:47:47 2015 +0100
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
sysdeps/freebsd/procmem.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/sysdeps/freebsd/procmem.c b/sysdeps/freebsd/procmem.c
index 6550ea2..b11c730 100644
--- a/sysdeps/freebsd/procmem.c
+++ b/sysdeps/freebsd/procmem.c
@@ -102,6 +102,11 @@ glibtop_get_proc_mem_p (glibtop *server, glibtop_proc_mem *buf,
buf->resident = buf->rss = (guint64)
ps_pgtok (pinfo [0].ki_rssize) * 1024;
+#if 0
+ /*
+ * It doesn't make any sense to count as shared each and every mmaped file
+ */
+
/* Now we get the shared memory. */
if (kvm_read (server->machine.kd,
@@ -157,4 +162,5 @@ glibtop_get_proc_mem_p (glibtop *server, glibtop_proc_mem *buf,
buf->flags = _glibtop_sysdeps_proc_mem |
_glibtop_sysdeps_proc_mem_share;
+#endif
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]