Linux has pacct and kernel-based processing. What equivalents are available for Windows? I am aware (and use/recommend) of Process Explorer, but that only tracks real-time stats, with non-portable graphs for a single process. I want to be able to track CPU, Memory, I/O for all of my processes on Windows 7.
We would like to allocate chunks of cpu-time and RAM-hours to the users every few months. This is on a Linux server. I think process accounting
can help keep track of usage but it does not enforce a usage policy. What would be a good way to enforce a usage policy. What we want is something like a bank account from which an user can withdraw cpu-time and memory-hours.
If I understand correctly ulimit puts a cap on different resources per shell instance and hence seems inadequate. I would appreciate if you correct me if I am wrong about ulimit. I suspect I am.
I've been thinking of enabling process accounting on a production server as a proactive security measure to monitor what's being ran on the system.
Looking at the initial documentation it appears that enabling process accounting on a busy system might result in a significant amount of disk space being used to log and store the system process information.
Anyone know what are the best recommendations on enabling process monitoring? Also any considerations on the setup, especially since this is a production server.
Ideally, I'd just want to log any shell commands including PHP exec(), system(), passthru(). etc..
-Tony
Are there true ulimit for windows? I'm finding ways/programs how to prevent one program eating 100% cpu.
Thanks.
I've been looking at using process accounting for keeping track of various users and sites running scripts that are problematic in our environment instead of trying to do something like scraping top at regular intervals.
The one that isn't particularly clear is which fields really denotes the cpu seconds/minutes used. The manual pages I have read say the 'cpu' column is for seconds burned, however there is alo the 'cp' column displayed with -m - and they can show different totals. For example:
When I use the -m flag, I get
$sa -m | grep username
username 14944 65.53re 29.90cp 5308k
When I use the -u flag and total up the column for 'cpu', I get the following:
sa -u |grep username|awk 'BEGIN{TOTAL=0}{TOTAL=TOTAL+$2}END{print TOTAL}'
1032.86
Can anybody help me understand the difference between the 'cp' and 'cpu' columns in these two different modes?
Thanks!