From: sena <auntvini@sedal.usyd.edu.au>
To: holt@sgi.com
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: uid problem in the kernel code.
Date: Wed, 07 Jan 2004 01:47:11 +1100 [thread overview]
Message-ID: <3FFACA6F.9040505@sedal.usyd.edu.au> (raw)
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
reply other threads:[~2004-01-07 2:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3FFACA6F.9040505@sedal.usyd.edu.au \
--to=auntvini@sedal.usyd.edu.au \
--cc=holt@sgi.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®