uid problem in the kernel code.

From: sena
Date: Tue Jan 06 2004 - 21:52:05 EST


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






-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/