Hi Shwetabh,
> 3. Went to /opt/ltp directory and tried to execute cpuhotplug test:
> [r...@localhost ~]# cd /opt/ltp/
> [r...@localhost ltp]# ./runltp -f cpuhotplug
>
Please find attached the quick 'n' dirty patch
(cpu_hotplugin_makefile.patch) to execute cpuhotplugin test.
I have observed that the 'hotplug' directory is not included in
"testcases/kernel/Makefile". I have also
created a Makefile in 'hotplug/cpu_hotplug' directory.
After applying this patch, I have followed the usual ./configure;
make; sudo make install steps and executed
the cpuhotplug test and observed the below given output . It seems
like the test execution is "not so good" in
my machine. Your mileage may vary.
Garret,Rishi, please review the patch and let me know your comments.
Signed-off-by: Maxin B. John <[email protected]>
------------------------------------------------------------------------------------------------------------------------------------------
ma...@maxin-laptop:/opt/ltp$ sudo ./runltp -f cpuhotplug
INFO: creating /opt/ltp/output directory
INFO: creating /opt/ltp/results directory
Checking for required user/group ids
If some fields are empty or look unusual you may have an old version.
Compare to the current minimal requirements in Documentation/Changes.
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.10
DISTRIB_CODENAME=karmic
DISTRIB_DESCRIPTION="Ubuntu 9.10"
Linux maxin-laptop 2.6.31-19-generic #56-Ubuntu SMP Thu Jan 28
01:26:53 UTC 2010 i686 GNU/Linux
'nobody' user id and group found.
'bin' user id and group found.
'daemon' user id and group found.
Users group found.
Sys group found.
Required users/groups exist.
Gnu C gcc (Ubuntu 4.4.1-4ubuntu9) 4.4.1
Gnu make 3.81
util-linux ng 2.16)
mount ng 2.16 (with libblkid and selinux support)
modutils 3.10
e2fsprogs 1.41.9
PPP 2.4.5
Linux C Library 2.10.1
Dynamic linker (ldd) 2.10.1
Procps 3.2.8
Net-tools 1.60
iproute2 iproute2-ss090324
Kbd 1.15
Sh-utils 7.4
Modules Loaded usb_storage binfmt_misc ppdev
snd_hda_codec_conexant snd_hda_intel snd_hda_codec snd_hwdep
snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy joydev snd_seq_oss
snd_seq_midi arc4 snd_rawmidi snd_seq_midi_event snd_seq ecb snd_timer
snd_seq_device iptable_filter snd soundcore snd_page_alloc b43
ip_tables psmouse mac80211 x_tables serio_raw cfg80211 led_class lp
parport fbcon tileblit font bitblit softcursor i915 drm i2c_algo_bit
ssb 8139too 8139cp mii intel_agp agpgart video output
free reports:
total used free shared buffers cached
Mem: 241116 235908 5208 0 10116 87660
-/+ buffers/cache: 138132 102984
Swap: 1028152 154292 873860
/proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 14
model name : Intel(R) Celeron(R) M CPU 420 @ 1.60GHz
stepping : 8
cpu MHz : 1596.045
cache size : 1024 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov
clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx constant_tsc up
arch_perfmon bts pni monitor tm2 xtpr pdcm
bogomips : 3192.09
clflush size : 64
power management:
remove test cases which require the block device.
You can specify it with option -b
COMMAND: /opt/ltp/bin/ltp-pan -e -S -a 7506 -n 7506 -p -f
/tmp/ltp-07KEC2Bcm4/alltests -l
/opt/ltp/results/LTP_RUN_ON-2010_Mar_03-22h_14m_34s.log -C
/opt/ltp/output/LTP_RUN_ON-2010_Mar_03-22h_14m_34s.failed
-e LOG File: /opt/ltp/results/LTP_RUN_ON-2010_Mar_03-22h_14m_34s.log
-e FAILED COMMAND File:
/opt/ltp/output/LTP_RUN_ON-2010_Mar_03-22h_14m_34s.failed
Running tests.......
<<<test_start>>>
tag=CPUHOTPLUG stime=1267634676
cmdline="(cd $LTPROOT/testcases/kernel/hotplug/cpu_hotplug/; ./runtests.sh)"
contacts=""
analysis=exit
<<<test_output>>>
cd: 1: can't cd to /opt/ltp/testcases/kernel/hotplug/cpu_hotplug/
incrementing stop
CPU: 1
LOOPS: 1
LHCS_PATH: /opt/ltp/testcases/bin
Name: hotplug01
Date: Wed Mar 3 22:14:36 IST 2010
Desc: What happens to disk controller interrupts when offlining CPUs?
CPU is 1
Error: cpu1 not found
hotplug01 FAIL: cpu1 not found!
Wed Mar 3 22:14:37 IST 2010
Name: hotplug02
Date: Wed Mar 3 22:14:37 IST 2010
Desc: What happens to a process when its CPU is offlined?
CPU is 1
Error: cpu1 not found
hotplug02 FAIL: cpu1 not found!
Wed Mar 3 22:14:37 IST 2010
exit: 35: Illegal number: -1
Name: hotplug03
Date: Wed Mar 3 22:14:37 IST 2010
Desc: Do tasks get scheduled to a newly on-lined CPU?
CPU is 1
Error: CPU1 not found
hotplug03 FAIL: CPU1 not found!
Wed Mar 3 22:14:37 IST 2010
exit: 31: Illegal number: -1
Name: hotplug04
Date: Wed Mar 3 22:14:37 IST 2010
Desc: Does it prevent us from offlining the last CPU?
functional/hotplug04.sh: 65: on[1]=cpuidle: not found
functional/hotplug04.sh: 65: Bad substitution
Name: Hotplug Test - Test Case 6
Date: Wed Mar 3 22:14:37 IST 2010
Desc: Verify user tools can handle adding and removing CPUs.
Name: hotplug06.top
Date: Wed Mar 3 22:14:37 IST 2010
Desc: Does top work properly when CPU hotplug events occur?
CPU is 1
Error: CPU1 not found
hotplug06.top FAIL: CPU1 not found!
Wed Mar 3 22:14:37 IST 2010
exit: 31: Illegal number: -1
Name: hotplug06.sar
Date: Wed Mar 3 22:14:37 IST 2010
Desc: Does sar behave properly during CPU hotplug events?
CPU is 1
Error: CPU1 not found
hotplug06.sar FAIL: CPU1 not found!
Wed Mar 3 22:14:37 IST 2010
exit: 31: Illegal number: -1
Name: HotPlug Test - Test Case 7
Date: Wed Mar 3 22:14:37 IST 2010
Desc: What happens when hotplugging during a heavy workload?
Issue: Hotplug bugs have been found during kernel compiles
get_affinity_mask 7652
cat: /sys/devices/system/cpu/cpu1/online: No such file or directory
[: 57: =: unexpected operator
Error: CPU1 cannot be onlined
Wed Mar 3 22:14:37 IST 2010
functional/hotplug07.sh: 64: disown: not found
<<<execution_status>>>
initiation_status="ok"
duration=1 termination_type=exited termination_id=1 corefile=no
cutime=3 cstime=3
<<<test_end>>>
INFO: ltp-pan reported some tests FAIL
LTP Version: LTP-20100228
###############################################################"
Done executing testcases."
LTP Version: LTP-20100228
###############################################################"
ma...@maxin-laptop:/opt/ltp$ cd results/
ma...@maxin-laptop:/opt/ltp/results$ cat LTP_RUN_ON-2010_Mar_03-22h_14m_34s.log
Test Start Time: Wed Mar 3 22:14:36 2010
-----------------------------------------
Testcase Result Exit Value
-------- ------ ----------
CPUHOTPLUG FAIL 1
-----------------------------------------------
Total Tests: 1
Total Failures: 1
Kernel Version: 2.6.31-19-generic
Machine Architecture: i686
Hostname: maxin-laptop
diff -uNr ltp-full-20100228-orig/testcases/kernel/hotplug/cpu_hotplug/Makefile ltp-full-20100228/testcases/kernel/hotplug/cpu_hotplug/Makefile
--- ltp-full-20100228-orig/testcases/kernel/hotplug/cpu_hotplug/Makefile 1970-01-01 05:30:00.000000000 +0530
+++ ltp-full-20100228/testcases/kernel/hotplug/cpu_hotplug/Makefile 2010-03-03 21:46:33.000000000 +0530
@@ -0,0 +1,27 @@
+#
+# kernel/hotplug/cpu_hotplug test suite Makefile.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#
+# Maxin B. John, March 2010
+
+top_srcdir ?= ../../../..
+
+include $(top_srcdir)/include/mk/env_pre.mk
+
+INSTALL_TARGETS := runtests.sh functional/* include/* tools/*
+
+include $(top_srcdir)/include/mk/generic_leaf_target.mk
+
diff -uNr ltp-full-20100228-orig/testcases/kernel/hotplug/memory_hotplug/Makefile ltp-full-20100228/testcases/kernel/hotplug/memory_hotplug/Makefile
--- ltp-full-20100228-orig/testcases/kernel/hotplug/memory_hotplug/Makefile 2010-03-01 20:28:28.000000000 +0530
+++ ltp-full-20100228/testcases/kernel/hotplug/memory_hotplug/Makefile 2010-03-03 21:46:12.000000000 +0530
@@ -29,6 +29,8 @@
LDLIBS += $(NUMA_LIBS)
LDLIBS := $(filter-out -lltp,$(LDLIBS))
+INSTALL_TARGETS := memtoy
+
MAKE_TARGETS := memtoy
memtoy: $(patsubst $(abs_srcdir)/%.c,%.o,$(wildcard $(abs_srcdir)/*.c))
diff -uNr ltp-full-20100228-orig/testcases/kernel/Makefile ltp-full-20100228/testcases/kernel/Makefile
--- ltp-full-20100228-orig/testcases/kernel/Makefile 2010-03-01 20:28:28.000000000 +0530
+++ ltp-full-20100228/testcases/kernel/Makefile 2010-03-03 21:45:52.000000000 +0530
@@ -27,7 +27,7 @@
ifneq ($(UCLINUX),1)
SUBDIRS := containers connectors controllers fs io ipc mem numa \
performance_counters power_management pty sched security \
- syscalls timers
+ syscalls timers hotplug
else
SUBDIRS := syscalls
endif
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list