Memory detection
Dmitry Olshansky
dmitry.olsh at gmail.com
Fri Aug 24 13:42:21 PDT 2012
On 24-Aug-12 07:03, 1100110 wrote:
>
> On linux this is not so difficult to do.
>
> Those values are generally in /proc, and it seems to be portable across
> pretty much every distro with a relatively recent kernel.
>
> I have an extremely half-assed bit of code that prints the load average
> and the totaly % of mem used to my tmux session.
> It gives the exact same values that are seen in top, or htop.(without
> the overhead of parsing their output, cause that takes ~500ms, way too
> slow.)
If parsing takes 500ms then something is seriously wrong. What is size
of the input to parse and the machine specs?
--
Olshansky Dmitry
More information about the Digitalmars-d-learn
mailing list