[Hotplug_sig] simple script to monitor process behavior

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

 



Mark,

I just took a look at your scripts.

When you do the echo 0 or echo 1's as in:
echo 0 > /sys/devices/system/cpu/cpu${CPU_TO_OFFLINE}/online
Per the suggestions made in the list, we to check the return value to
make sure it worked.  I'm not sure how many times we should try it
before giving up (anyone have suggestions?) but I'd say try it ten times
and give up if it doesn't return successfully in that many times.

Also, I suggest that when you check run taskset after removing the cpu,
you add a check that reports an error if taskset returns the just
offlined cpu.



On Fri, 2005-03-25 at 13:49, Mark Wong wrote:
> Hi, so I put together a little script to watch processor utilization
> when a process is spinning around while a cpu is offlined.  I'll
> attach the 2 scripts I put together.  Or you can use bk:
> 	bk://developer.osdl.org/stp-test/lhcs-regression
> 
> I recommend running it with 'bash -x' because of the way I threw it
> together:
> 	bash -x process_test.sh cpu_#_to_offline
> 
> Let me know any thoughts.
> 
> Mark
> 
> ______________________________________________________________________
> _______________________________________________
> Hotplug_sig mailing list
> Hotplug_sig@xxxxxxxxxxxxxx
> http://lists.osdl.org/mailman/listinfo/hotplug_sig
-- 
Mary Edie Meredith 
maryedie@xxxxxxxx
503-906-1942
Open Source Development Labs


[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux