[exim] Re: Bug#270735: exim4: Self-denial of mail service

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Greg Kochanski
Dátum:  
Címzett: Andreas Metzler
CC: exim-users, 270735
Tárgy: [exim] Re: Bug#270735: exim4: Self-denial of mail service

>>How? It looks in /proc/meminfo .
>
> [...]
>
> login__~> cat /proc/meminfo
> cat: 0652-050 Cannot open /proc/meminfo.
> login__~> uname -a
> AIX login 2 5 00404A0A4C00
>
> The existence of /proc and the files in it are OS-specific. And not
> only the files itself but also the required data (different OS will
> require different algoritms for detecting a pending OOM condition).
>                     cu andreas



Quite. Sarcasm is unnecessary.
I note that /proc/loadavg isn't there on AIX either,
yet exim somehow manages to obtain the load average
(or does without).

The details of where you get the information are OS-specific,
but the information you need is broadly available on most sensible
OSs. For instance, on AIX, such information is produced
by the vmstat command (see the pi, po, avm fields) to tell
if the system is starting to swap.


One might have to write an OS-dependent
function; that kind of thing is often done
with automake and autoconf.