Difference between pages "Benchmarking" and "Boot livecd ISO from HDD"

From Funtoo
(Difference between pages)
Jump to: navigation, search
m (Nexuiz)
 
 
Line 1: Line 1:
== CPU ==
+
With grub2, you can easily boot a livecd image from your hard drive.
=== Compiler performance ===
+
<console>
+
###i## time emerge -1 coreutils
+
</console>
+
Output:
+
<pre>
+
real    2m17.574s
+
user    1m46.572s
+
sys    0m53.450s
+
</pre>
+
  
== RAM ==
+
== General guide ==
=== ramspeed ===
+
This is general example. I will add settings for different livecd's later.
<console>
+
###i## emerge -av ramspeed
+
$##bl## ramspeed -b2 -m4 && ramspeed -b1 -m4
+
</console>
+
Output:
+
<pre>
+
INTEGER & READING      2048 Kb block: 5027.82 MB/s
+
INTEGER & READING      4096 Kb block: 4999.53 MB/s
+
...
+
INTEGER & WRITING      2048 Kb block: 2003.86 MB/s
+
INTEGER & WRITING      4096 Kb block: 1951.05 MB/s
+
</pre>
+
 
+
== Hard drive ==
+
=== hdparm ===
+
<console>
+
###i## hdparm -tT /dev/sda
+
</console>
+
Output:
+
<pre>
+
/dev/sda:
+
Timing cached reads:  2318 MB in  2.00 seconds = 1159.52 MB/sec
+
Timing buffered disk reads: 648 MB in  3.00 seconds = 215.92 MB/sec
+
</pre>
+
 
+
=== dd ===
+
<console>
+
$##bl## dd bs=1M count=512 if=/dev/zero of=temp conv=fdatasync
+
###i## echo 3 > /proc/sys/vm/drop_caches
+
$##bl## dd bs=1M count=512 if=temp of=/dev/null
+
$##bl## rm temp
+
</console>
+
Output:
+
<pre>
+
536870912 bytes (537 MB) copied, 3.13319 s, 171 MB/s
+
..
+
536870912 bytes (537 MB) copied, 2.17444 s, 247 MB/s
+
</pre>
+
 
+
== GPU ==
+
=== Warsow ===
+
==== Install ====
+
<console>
+
###i## emerge -av warsow
+
$##bl## mkdir -p ~/.warsow-1.0/basewsw/demos
+
$##bl## cd ~/.warsow-1.0/basewsw/demos
+
$##bl## wget http://www.phoronix-test-suite.com/benchmark-files/pts-warsow-10-1.zip
+
$##bl## unzip pts-warsow-10-1.zip
+
</console>
+
==== Benchmark ====
+
<console>
+
$##bl## warsow +exec profiles/high+.cfg +timedemo 1 +cg_showFPS 1 +cl_maxfps 999 +demo pts-demo10 +next "quit" +r_mode -1
+
</console>
+
Output:
+
<pre>
+
899 frames, 76.4 seconds: 11.8 fps
+
</pre>
+
  
=== Nexuiz ===
+
1. Copy the iso image to root folder for simplicity:
 
<console>
 
<console>
###i## emerge -av nexuiz
+
###i## cp /home/user/downloads/systemrescuecd.iso /src.iso
$##bl## nexuiz-glx -benchmark demos/demo1 -nosound 2>&1 {{!}} egrep -e '[0-9]+ frames'
+
 
</console>
 
</console>
Output:
 
<pre>
 
1910 frames 42.0330749 seconds 45.4404063 fps, one-second fps min/avg/max: 35 46 63 (90 seconds)
 
</pre>
 
  
=== Xonotic ===
+
2. Reboot and when grub2 loads press 'c' for console. Use following commands (tab autocompletion is your friend):
 
<console>
 
<console>
###i## emerge -av xonotic
+
loopback loop (hd0,2)/src.iso
$##bl## xonotic-glx -benchmark demos/the-big-keybench 2>&1 {{!}} egrep -e '[0-9]+ frames'
+
linux (loop)/boot/vmlinuz
 +
initrd (loop)/boot/initrd.lz
 +
boot
 
</console>
 
</console>
Output:
 
<pre>
 
12568 frames 556.0637400 seconds 22.6017255 fps, one-second fps min/avg/max: 19 23 27 (207 seconds)
 
</pre>
 
  
 
[[Category:HOWTO]]
 
[[Category:HOWTO]]

Revision as of 15:58, 11 January 2014

With grub2, you can easily boot a livecd image from your hard drive.

General guide

This is general example. I will add settings for different livecd's later.

1. Copy the iso image to root folder for simplicity:

# cp /home/user/downloads/systemrescuecd.iso /src.iso

2. Reboot and when grub2 loads press 'c' for console. Use following commands (tab autocompletion is your friend):

loopback loop (hd0,2)/src.iso
linux (loop)/boot/vmlinuz
initrd (loop)/boot/initrd.lz
boot