* uid problem in the kernel code.
@ 2004-01-06 14:47 sena
0 siblings, 0 replies; only message in thread
From: sena @ 2004-01-06 14:47 UTC (permalink / raw)
To: holt; +Cc: linux-kernel
Hi Robin,
Thank you for the previous advice and for your valuable time.
ps command runs in the user space and indicates correctly the uids or
owners. If I can get the same uid in the kernel space, that is while
doing sampling then that would be great.
The reason for my concern about Load Average is that it is a more
correct parameter for the CPU's load.
If I say bluntly the Load Average is= (number of running executables +
number of exes which are queued in the Runnable queue)
This is more correct than CPU usage as a %.
Every 5 seconds the kernel samples the running queue and calculate the
Load Average for 5min, 10 min and 15 min. The top presents this load
average.
In my case I am going to be more specialised.
Say 5 users have login and thay submit jobs through, say telnet server.
(As the problem is the task_struct uid inherits server uid)
What I do is to calculate Load Averages seperately for the each user.
(500, 501,502, 503, 504). I calculate only for last 5 min. (but every 5
seconds I sample the running queue)
This would indicate the Load Signal by a perticular user.
Thanks
Sena Seneviratne
Computer Engineering Lab
School of Information and Electrical Engineering
Sydney University
Sydney
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-01-07 2:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-06 14:47 uid problem in the kernel code sena
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®