History log of /haiku/src/system/kernel/system_info.cpp
Revision Date Author Comments
# d5ff3cd0 17-Mar-2022 Augustin Cavalier <waddlesplash@gmail.com>

kernel/system_info: Address review comments.

* Combine "i" and "firstCPU" iteration variables.
* Use better variable names.

Change-Id: Ifc6fcaea6519dc4a791600f4a8bcdd38f02434f3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5111
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>


# 23840276 10-Mar-2022 Augustin Cavalier <waddlesplash@gmail.com>

kernel/system_info: Rename variable based on axeld's review.


# 64a05139 09-Mar-2022 Augustin Cavalier <waddlesplash@gmail.com>

kernel/system_info: Avoid unnecessary usage of set_ac.

Instead add a second level to the loop and a small temporary array.
Makes the code slightly simpler (and safer, as there is no risk
of races now.)

Also add a missing "firstCPU +" in the current_frequency calculation.
It seems that has been broken since the frequency value was introduced...


# 7c2c355f 10-Sep-2020 Jérôme Duval <jerome.duval@gmail.com>

kernel: add frequency in cpu_info

use this in sysinfo.

Change-Id: I270ef1ab18c27c4804cb0cca2cb5088a17162636
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3214
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# c9dd084d 11-Jan-2020 Axel Dörfler <axeld@pinc-software.de>

kernel: Also add the debug level to the "info" KDL command


# bbee8792 27-Jul-2019 Augustin Cavalier <waddlesplash@gmail.com>

kernel/system_info: Restore the previous cpuCount check.

As per axeld's review; the change was unnecessary.


# 68d11f88 27-Jul-2019 Augustin Cavalier <waddlesplash@gmail.com>

kernel/system_info: Check bounded "count" instead of the unbounded one.

This condition should never be hit by well-behaved applications
anyways.


# fa146526 12-Jul-2019 Augustin Cavalier <waddlesplash@gmail.com>

kernel/system_info: Avoid malloc() in _user_get_cpu_info.

This is called 15-30 times per second (15 by Pulse, 30 by ActivityMonitor),
so we want to keep it as low-profile as is possible.


# 4f7b9506 14-Jun-2018 Augustin Cavalier <waddlesplash@gmail.com>

Revert the rest of the COMPAT_MODE changes (back to hrev52003.)

This reverts commit 458e758f3792ef11ca26d6ff7e24600c88326e83.
This reverts commit ce5eb94a82b1b377ef5909e65411e031f54ceb15.
This reverts commit aac8d4c317ca11a9a6e194e2c668e8183ec23dd6.
This reverts commit c70cba914aa79c01bbc2da38085936f589899c8c.
This reverts commit 2ffbe7aaca8668c5a68ac7488459bace7a0700f2
This reverts commit c6e120e2d2f909d95f95839fa99fccf811fdb3c5.


# ce5eb94a 19-May-2018 Jérôme Duval <jerome.duval@gmail.com>

kernel/x86_64: compatibility syscall for system_info.cpp.

* define compat_system_info to be used in _user_get_system_info() in
compatibility mode.

Change-Id: Ib917d41a3a87155aee9cb536fd09e7231b232bc8


# 9c18398f 05-Jan-2018 Jérôme Duval <jerome.duval@gmail.com>

kernel: system_info: correctly check the user buffer...

before writing.


# 79895eed 23-Apr-2014 Murai Takashi <tmurai01@gmail.com>

Fix gcc 4.9.0 build

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>


# d941d6ba 25-Mar-2014 Axel Dörfler <axeld@pinc-software.de>

Minor cleanup.


# 81e04d7b 03-Jan-2014 Pawel Dziepak <pdziepak@quarnos.org>

kernel: Remove cpu_info::load

This field forces kernel to track each CPU load all the time. It is not
a problem with the current scheduler on a multicore systems, but on
single core machnies or with any other future scheduler this field may
become just an unnecessary burden. It isn't difficult for an application
to compute CPU load by itself when it needs it.


# 15a7f204 29-Dec-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel: Return CPU load in cpu_info


# 3add52e8 19-Dec-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel: Fix topology node count being decreased twice per node


# d02aaee1 15-Dec-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel, libroot: Add more memory info in system_info

system_info now contains all information previously available only
through __get_system_info_etc(B_MEMORY_INFO, ...).


# 1bc7045f 15-Dec-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel, libroot: Introduce new API for obtaining system info


# d897a478 17-Nov-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel: Allow reassigning IRQs to logical processors


# 955c7ede 17-Nov-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel: Measure time spent in interrupt handlers


# 0e88a887 13-Jun-2012 Alex Smith <alex@alex-smith.me.uk>

First round of 64-bit safety fixes in the kernel.

* Most of this is incorrect printf format strings. Changed all strings
causing errors to use the B_PRI* format string definitions, which
means the strings should be correct across all platforms.
* Some other fixes for errors, casts required, etc.


# 22a7fe96 15-May-2011 Oliver Tappe <zooey@hirschkaefer.de>

Cleanup system-revision stuff.
* move system_revision.h to headers/private/libroot
* unify libroot's get_system_revision() (the one I introduced recently) with kernel's
get_haiku_revision(), the function is now called get_haiku_revision() in the kernel
and __get_haiku_revision() in libroot
* system_revision.c is now being built as part of libroot and as part of the kernel
* adjusted all callers of get_system_revision() accordingly


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41516 a95241bf-73f2-0310-859d-f6bbb57e9c96


# af2da315 10-May-2011 Oliver Tappe <zooey@hirschkaefer.de>

Fix the larger problem that was hiding behind the build problem of set_haiku_revsion on FreeBSD:
* the length of the sHaikuRevision character array symbol needs to be set explicitly,
as using either _SYS_NAMELEN or sizeof(utsname::version) will only return the values
for the host, which may not match ours, thus potentially causing problems when using
sHaikuRevision
* add headers/private/system_revision.h which defines SYSTEM_REVISION_LENGTH to 128
* adjust definitions of sHaikuRevision in libroot and kernel accordingly
utsname::version is shorter than SYSTEM_REVISION_LENGTH, but that doesn't cause any harm
until we have indeed switched to a DVCS (in which case longer revision strings will be
cut off by 'uname').


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41421 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 48315186 09-May-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Remove reference to SVN, now that revision is a VCS-agnostic string...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41394 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6250297a 08-May-2011 Oliver Tappe <zooey@hirschkaefer.de>

Switch haiku-revision from uint32 to string, as that's going to be required soon, no matter if we switch to Git or Mercurial
* increase _SYS_NAMELEN defined in sys/utsname.h to 128 to allow long(ish) revisions
* sHaikuRevision is now a static character array (in both libroot and kernel)
* adjust build tool set_haiku_revision to write the revision as string


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41389 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d23cadce 16-Dec-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

[_{kern,user}_]{start,stop}_system_watching()
-> [_{kern,user}_]{start,stop}_watching_system()


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39872 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 260241b4 15-Dec-2010 Rene Gollent <anevilyak@gmail.com>

The wrong ID was being passed into _SendMessage(), leading to all thread
property change notifications being sent as having occurred for the team's
main thread.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39865 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d2bf328d 15-Dec-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Implemented a generic system watching mechanism with a userland API. Currently
only a few events can be watched (team creation/deletion/exec, thread creation/
deletion/name changes). The functions start_system_watching()/
stop_system_watching start/stop watching events.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39862 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7b8dcda4 17-Jul-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Add gcc version information to kdl info command. This could help debugging in some cases and fixes #3240.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37562 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1d578e15 02-Jun-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixed more address types related issues. Mostly printf() or comparison
warnings, but also some oversights from earlier changes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37000 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fc5c7fdd 28-Feb-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

dump_info(): We can't use use cpu_get_active_time() in the kernel debugger as
it tries to acquire the thread spinlock.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35657 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e50cf876 02-Dec-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

* Moved the VM headers into subdirectory vm/.
* Renamed vm_cache.h/vm_address_space.h to VMCache.h/VMAddressSpace.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34449 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c7d1aa19 25-May-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Added system_info::abi field. It contains the system's ABI version, which
might be different from that of the caller (on hybrid builds).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30858 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 669ab214 15-Oct-2008 Axel Dörfler <axeld@pinc-software.de>

* The "info" KDL command now also dumps the built-in SVN revision.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28153 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ca7cb625 17-Sep-2008 Axel Dörfler <axeld@pinc-software.de>

* Implemented a (private for now) get_system_info_etc() call, that can retrieve
various system information.
* Implemented retrieving some VM stats via this call.
* The VM now maintains a page fault counter, and sets system_info::page_faults
accordingly.
* Added a (pretty simple) "vmstat" command line app.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27597 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8d12bd13 05-Aug-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

* Moved the incrementing/decrementing of vm_page::wired_count into
dedicated functions.
* Introduced gMappedPagesCount variable which counts the total number of
physical pages that are mapped.
* Added vm_page_get_stats() which fills in the memory related part of
the system_info structure. Used and cached pages are computed
differently, now. The "available" (== not committed) memory is no
longer used for the computation as it doesn't say anything about the
actually used/free pages (with swap support enabled it is even
less meaningful, since we first commit swap space when possible).
We do also consider the memory used by the block cache as cached
pages, now. All in all these changes should fix the memory statistics
reported by get_system_info(), IOW bug #2574.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26837 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4f5bc0cf 01-Apr-2008 Axel Dörfler <axeld@pinc-software.de>

* Reenabled used page reporting based on vm_available_memory().
* Prettyfied memory info in the sysinfo app.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24746 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 153cc3c0 27-Mar-2008 Rene Gollent <anevilyak@gmail.com>

Use the old calculations for used_pages for the time being until the issue with sAvailableMemory is resolved.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24615 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 41f8d416 25-Mar-2008 Axel Dörfler <axeld@pinc-software.de>

Applied patch by Rene Gollent:
* Add a cached_pages field to the system_info structure, and change the
meaning of the used_pages field to not include cached pages.
* Provide the needed info using the new calls vm_get_available_memory(),
and vm_page_num_available_pages().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24571 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fe8b72bc 15-Mar-2008 Axel Dörfler <axeld@pinc-software.de>

Applied patch by Vasilis:
* Fixed various warnings with GCC4 due to the double sHaikuRevision line.
* Turned system_info.c to a C++ file.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24404 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 79895eed07bbe1918686c6bf26869116369c3596 23-Apr-2014 Murai Takashi <tmurai01@gmail.com>

Fix gcc 4.9.0 build

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>


# d941d6bac345959f2646af6d1e4fd2f97f4828a3 25-Mar-2014 Axel Dörfler <axeld@pinc-software.de>

Minor cleanup.


# 81e04d7b9734081a6c3190b9b8bdab304dc0fe3e 03-Jan-2014 Pawel Dziepak <pdziepak@quarnos.org>

kernel: Remove cpu_info::load

This field forces kernel to track each CPU load all the time. It is not
a problem with the current scheduler on a multicore systems, but on
single core machnies or with any other future scheduler this field may
become just an unnecessary burden. It isn't difficult for an application
to compute CPU load by itself when it needs it.


# 15a7f2046addd659e66d7614ac1e698a0aade255 29-Dec-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel: Return CPU load in cpu_info


# 3add52e8babe6ab241987c757cd5dc7b1b53c764 19-Dec-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel: Fix topology node count being decreased twice per node


# d02aaee17e007631fcfa91a012ec7b6386927012 15-Dec-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel, libroot: Add more memory info in system_info

system_info now contains all information previously available only
through __get_system_info_etc(B_MEMORY_INFO, ...).


# 1bc7045fdfb85e6151d01c73669be19627c4783b 15-Dec-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel, libroot: Introduce new API for obtaining system info


# d897a478d7c01054aad29b23f7f545073c797530 17-Nov-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel: Allow reassigning IRQs to logical processors


# 955c7edec2e0d6f52e5245ce449804cede5de34b 17-Nov-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel: Measure time spent in interrupt handlers


# 0e88a887b4a9ecaaf1062078d9ca9bfca78fcf3a 13-Jun-2012 Alex Smith <alex@alex-smith.me.uk>

First round of 64-bit safety fixes in the kernel.

* Most of this is incorrect printf format strings. Changed all strings
causing errors to use the B_PRI* format string definitions, which
means the strings should be correct across all platforms.
* Some other fixes for errors, casts required, etc.


# 22a7fe9695a6685994f516857f10a3e0efaf15c7 15-May-2011 Oliver Tappe <zooey@hirschkaefer.de>

Cleanup system-revision stuff.
* move system_revision.h to headers/private/libroot
* unify libroot's get_system_revision() (the one I introduced recently) with kernel's
get_haiku_revision(), the function is now called get_haiku_revision() in the kernel
and __get_haiku_revision() in libroot
* system_revision.c is now being built as part of libroot and as part of the kernel
* adjusted all callers of get_system_revision() accordingly


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41516 a95241bf-73f2-0310-859d-f6bbb57e9c96


# af2da315dc9a699849a86a5c6f3b2ddb79632e83 10-May-2011 Oliver Tappe <zooey@hirschkaefer.de>

Fix the larger problem that was hiding behind the build problem of set_haiku_revsion on FreeBSD:
* the length of the sHaikuRevision character array symbol needs to be set explicitly,
as using either _SYS_NAMELEN or sizeof(utsname::version) will only return the values
for the host, which may not match ours, thus potentially causing problems when using
sHaikuRevision
* add headers/private/system_revision.h which defines SYSTEM_REVISION_LENGTH to 128
* adjust definitions of sHaikuRevision in libroot and kernel accordingly
utsname::version is shorter than SYSTEM_REVISION_LENGTH, but that doesn't cause any harm
until we have indeed switched to a DVCS (in which case longer revision strings will be
cut off by 'uname').


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41421 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 48315186a82495445634cffd4075290638a8224e 09-May-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Remove reference to SVN, now that revision is a VCS-agnostic string...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41394 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6250297a0862f935bdd9e1770bb7dde9cdab2e3f 08-May-2011 Oliver Tappe <zooey@hirschkaefer.de>

Switch haiku-revision from uint32 to string, as that's going to be required soon, no matter if we switch to Git or Mercurial
* increase _SYS_NAMELEN defined in sys/utsname.h to 128 to allow long(ish) revisions
* sHaikuRevision is now a static character array (in both libroot and kernel)
* adjust build tool set_haiku_revision to write the revision as string


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41389 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d23cadce4cdbd4e891a2aedf4f82f252f71d2461 16-Dec-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

[_{kern,user}_]{start,stop}_system_watching()
-> [_{kern,user}_]{start,stop}_watching_system()


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39872 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 260241b41b988e2b00a35b9a5cb1f407727297a1 15-Dec-2010 Rene Gollent <anevilyak@gmail.com>

The wrong ID was being passed into _SendMessage(), leading to all thread
property change notifications being sent as having occurred for the team's
main thread.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39865 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d2bf328d7214cbba46b4781d70c5abda13083b89 15-Dec-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Implemented a generic system watching mechanism with a userland API. Currently
only a few events can be watched (team creation/deletion/exec, thread creation/
deletion/name changes). The functions start_system_watching()/
stop_system_watching start/stop watching events.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39862 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7b8dcda4643168c8e88e6ca442dad5430f832aa2 17-Jul-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Add gcc version information to kdl info command. This could help debugging in some cases and fixes #3240.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37562 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1d578e15fe5b5c3ff62866ae81aef529d00d7762 02-Jun-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixed more address types related issues. Mostly printf() or comparison
warnings, but also some oversights from earlier changes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37000 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fc5c7fdd81e6b94caf5f59dac373f1bb3cc32532 28-Feb-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

dump_info(): We can't use use cpu_get_active_time() in the kernel debugger as
it tries to acquire the thread spinlock.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35657 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e50cf8765be50a7454c9488db38b638cf90805af 02-Dec-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

* Moved the VM headers into subdirectory vm/.
* Renamed vm_cache.h/vm_address_space.h to VMCache.h/VMAddressSpace.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34449 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c7d1aa192fe8cfb8963a72faaa9d946743cd2d03 25-May-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Added system_info::abi field. It contains the system's ABI version, which
might be different from that of the caller (on hybrid builds).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30858 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 669ab2141b40b27cc8b5487c091d2cbb81b7757a 15-Oct-2008 Axel Dörfler <axeld@pinc-software.de>

* The "info" KDL command now also dumps the built-in SVN revision.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28153 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ca7cb625b9769be2657365e2137197bdc3a9692d 17-Sep-2008 Axel Dörfler <axeld@pinc-software.de>

* Implemented a (private for now) get_system_info_etc() call, that can retrieve
various system information.
* Implemented retrieving some VM stats via this call.
* The VM now maintains a page fault counter, and sets system_info::page_faults
accordingly.
* Added a (pretty simple) "vmstat" command line app.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27597 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8d12bd1370b89bd29d6b306f5875ec08ce5f4a74 05-Aug-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

* Moved the incrementing/decrementing of vm_page::wired_count into
dedicated functions.
* Introduced gMappedPagesCount variable which counts the total number of
physical pages that are mapped.
* Added vm_page_get_stats() which fills in the memory related part of
the system_info structure. Used and cached pages are computed
differently, now. The "available" (== not committed) memory is no
longer used for the computation as it doesn't say anything about the
actually used/free pages (with swap support enabled it is even
less meaningful, since we first commit swap space when possible).
We do also consider the memory used by the block cache as cached
pages, now. All in all these changes should fix the memory statistics
reported by get_system_info(), IOW bug #2574.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26837 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4f5bc0cfe9b70c4cdf2ebdbf3912f4a72cfcc791 01-Apr-2008 Axel Dörfler <axeld@pinc-software.de>

* Reenabled used page reporting based on vm_available_memory().
* Prettyfied memory info in the sysinfo app.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24746 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 153cc3c0f46fbddb55c28cd633495885331cb608 27-Mar-2008 Rene Gollent <anevilyak@gmail.com>

Use the old calculations for used_pages for the time being until the issue with sAvailableMemory is resolved.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24615 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 41f8d41647c52758df0d91031609d31ca01032ce 25-Mar-2008 Axel Dörfler <axeld@pinc-software.de>

Applied patch by Rene Gollent:
* Add a cached_pages field to the system_info structure, and change the
meaning of the used_pages field to not include cached pages.
* Provide the needed info using the new calls vm_get_available_memory(),
and vm_page_num_available_pages().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24571 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fe8b72bc69e027abd0975ea252706a8d2b92caee 15-Mar-2008 Axel Dörfler <axeld@pinc-software.de>

Applied patch by Vasilis:
* Fixed various warnings with GCC4 due to the double sHaikuRevision line.
* Turned system_info.c to a C++ file.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24404 a95241bf-73f2-0310-859d-f6bbb57e9c96