[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 4.8.2-beta1: process/sysdep_LINUX.c
From: |
Martin Pala |
Subject: |
Re: 4.8.2-beta1: process/sysdep_LINUX.c |
Date: |
Mon, 13 Nov 2006 23:29:16 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060809 Debian/1.7.13-0.3 |
Hello,
thanks for report. Is this related just to 64-bit kernel or 32-bit as well?
When you are running on 64-bit kernel, it could be beter to compile
monit with 64-bit support, which is default on AMD64 based linuxes for
example. Then the 'long' type is 64-bit as well as 'long long'.
If it affects 32-bit kernel s well, we can extend the type as you suggested.
Thanks.
Martin
Aaron Scamehorn wrote:
Hello,
In the new process/sysdep_LINUX.c:
I think you need to use a larger datatype then long to store the
/proc/stat stuff....
I've got a couple of machines which will blow out LONG_MAX.
Please see attached output of /proc/stat...
I suggest you use long long, or even unsigned long long.
Thanks,
Aaron
------------------------------------------------------------------------
cpu 52807792 27576 29244732 3323212212 3848571 600376 0
cpu0 13225559 5515 8337672 828918168 1510239 438193 0
cpu1 14176615 5875 7508844 830222178 444462 77328 0
cpu2 11998041 8329 6458298 833444435 447216 78981 0
cpu3 13407575 7856 6939916 830627430 1446652 5872 0
intr 10832831822 4230273048 763 0 60 28 2202187618 11 0 1 0 0 8 1250 0 77097456
28304283 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
ctxt 10330593046
btime 1154916878
processes 12403346
procs_running 3
procs_blocked 0
------------------------------------------------------------------------
cpu 22731562 27293 15510714 6389248059 2329174 126065 0
cpu0 5391244 6191 3796595 793620066 668830 122984 0
cpu1 4732942 5753 2835362 795476107 553483 2205 0
cpu2 1740743 2039 1163213 800832732 114460 10 0
cpu3 2502214 2246 1815307 799362359 170846 223 0
cpu4 1745995 2074 1157754 800760165 178681 225 0
cpu5 2495188 1933 1823249 799404095 120430 0 0
cpu6 1688850 2747 1145181 800636542 209133 0 0
cpu7 2434383 4306 1774049 799155990 313309 414 0
intr 8729320670 3745645389 2330 0 0 0 0 0 0 26807 0 0 0 30270 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 5024364 0 0 0 0 0 0 0 675461591 0 0 0 0 0 0 0 8162623 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
ctxt 15628530452
btime 1155400498
processes 1857393
procs_running 1
procs_blocked 0
------------------------------------------------------------------------
_______________________________________________
monit-dev mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/monit-dev