Thanks Crhis for sharing this test program with LTP. I find some problem in compiling it on i386, ppc64, etc. Please see below:
# gcc fairtest.cc /tmp/cc6GXqFS.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status the above seems to be a linker problem. Can you please let us know if there are some special libraries that i need to include for it´s compilation ? Also, i would like to get your help in completely automating this for better integration inside LTP. If the test program requires to get it´s input from a config file, can this be provided through a host of command line options ? Such as: in a scenario, when i can actually evaluate, say N different behaviour of the same test with various combinations of arguments through command line. I am saying this as we normally do not take arguments from any file for all our automated tests. They come through command line. Say, i would like to have this: 1) fairtest01 fairtest var1=value1 var2=value1 ......var-n=value-1 2) fairtest02 fairtest var1=value2 var2=value2 ......var-n=value-2 3) fairtest03 fairtest var1=value3 var2=value3 ......var-n=value-3 4) fairtest04 fairtest var1=value4 var2=value4 ......var-n=value-4 ...... ...... N) fairtestN fairtest var1=value-N var2=value-N ......var-n=value-N Regards-- Subrata On Tue, 2008-08-26 at 10:41 -0600, Chris Friesen wrote: > Peter Zijlstra wrote: > > On Tue, 2008-08-26 at 03:20 +0530, Subrata Modak wrote: > > > >>Hi Vatsa, > >> > >>2.6.26 has seen commits to implement SMP nice support for the full group > >>hierarchy. Did you use any specific regression/benchmark test cases of > >>your own for this ? > > > > > > Some hand crafted scenarios at times, but chris friesen (CCed) wrote a > > nice test program - he might be willing to share ;-) > > Sure...the more people that are testing in a systematic way, the better > results we're likely to see in mainline. > > I've attached my test app, along with some sample config files. > > It lets you specify some number of groups, set the share for each group, > and specify 0/1/n cpu hogs for each group (where n is the number of cpus > online). To save resources I've arbitrarily set the limit at 10 groups > and 4 cpus, but that can easily be changed. Basically it sets up the > groups, spawns a bunch of cpu hogs, and then after a specified amount of > time it pauses all of the hogs and gathers cpu usage and latency data > from /proc/<pid>/sched. > > The tool must be run as root. In the simplest case you just give it the > name of the config file and it will use the default options--cpu hogs > are pure hogs, are not affined, and run in SCHED_OTHER with nice -10. > > The app can handle multiple levels of group hierarchy. To simplify > things, it will only allow scenarios where all the cpu hogs are in the > leaf groups, and will bail out if this is violated. > > You can use the "-v" option to dump more information, and "-V" to give > the verbose version and also dump out the /proc/<pid>/sched files for > manual parsing. > > Chris ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
