My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
WoensDag31_10_2007  
xen-tools and unixbenchmarking
Updated Feb 4, 2010 by koen.van...@gmail.com

11h - 12h

  • try to install domU via xen-tools
    • some problems with the logical volumes
      • removed some lv via lvremove /dev/helios164/fiona
      • Can't remove open logical volume "fiona"
      • mount to see which were mounted and then umount.
    • http://www.debian-administration.org/articles/533 -- tutorial about xen-tools
    • edit /etc/xen-tools/xen-tools.conf
    • #
      # /etc/xen-tools/xen-tools.conf
      #
      #  Global configuration file for the scripts included with Xen-tools.
      #
      #  Values may be set here so they don't need to be specified upon the
      # command line.
      #
      # Steve
      # --
      #
      
      
      
      #
      ##
      #  Output directory for storing loopback images.
      #
      #  If you choose to use loopback images, which are simple to manage but
      # slower than LVM partitions, then specify a directory here and uncomment
      # the line.
      #
      #  New instances will be stored in subdirectories named after their
      # hostnames.
      # 
      ##
      # dir = /mnt
      #
      
      #
      ##
      #
      # If you don't wish to use loopback images then you may specify an 
      # LVM volume group here instead
      #
      ##
       lvm = helios164
      
      
      #
      ##
      #
      #  Installation method.
      #
      #  There are four different methods you can use to install a new copy
      # of Linux to use in your Xen guest domain:
      #
      #   - Installation via the debootstrap command.
      #   - Installation via the rpmstrap command.
      #   - Installation by copying a directory containing a previous installation.
      #   - Installation by untarring a previously archived image.
      #
      #  NOTE That if you use the "untar", or "copy" options you should ensure
      # that the image you're left with matches the 'dist' setting later in
      # this file.
      #
      #  Note that you can only uncomment one method - they are mutually exclusive.
      # However the command line installation method will allow you to override
      # the choice you make here.
      #
      ##
      # 
      # copy = /path/to/pristine/image
       debootstrap = 1
      # rpmstrap = 1
      # tar = /path/to/img.tar
      #
      
      #
      ##
      #  Command definitions.
      ##
      #
      # The "debootstrap" and "rpmstrap" commands are hardwired, but if you
      # wish to alter the commands invoked when using the "--copy" + "--tar"
      # options you can adjust these two settings:
      #
      # --copy:
      # copy-cmd = /bin/cp -a $src/* $dest
      #
      # --tar:
      # tar-cmd  = /bin/tar --numeric-owner -xvf $src
      #
      #
      
      
      
      #
      ##
      #  Disk and Sizing options.
      ##
      #
      size   = 4Gb      # Disk image size.
      memory = 64Mb    # Memory size
      swap   = 128Mb    # Swap size
      # noswap = 1      # Don't use swap at all for the new system.
      fs     = ext3     # use the EXT3 filesystem for the disk image.
      dist   = etch      # Default distribution to install.
      image  = sparse   # Specify sparse vs. full disk images.
      
      #
      #  Currently supported and tested distributions include:
      #
      #   sid          - Debian
      #   sarge        - Debian
      #   etch         - Debian
      #   dapper       - Ubuntu
      #   centos4      - CentOS 4
      #   fedora-core4 - Fedora Core 4 (codname stentz)
      #
      
      
      
      ##
      # Networking setup values.
      ##
      
      #
      # Uncomment and adjust these network settings if you wish to give your
      # new instances static IP addresses.
      #
        gateway   = 10.10.10.12
        netmask   = 255.255.128.0
      #
      # Uncomment this if you wish the images to use DHCP
      #
      # dhcp = 1
      
      
      ##
      # Misc options
      ##
      
      #
      # Uncomment the following line if you wish to disable the caching
      # of downloaded .deb files when using debootstrap to install images.
      #
      # cache = no
      #
      
      #
      # Uncomment the following line if you wish to interactively setup
      # a new root password for images.
      #
      passwd = 1
      
      #
      # If you'd like all accounts on your host system which are not present
      # on the guest system to be copied over then uncomment the following line.
      #
      # accounts = 1
      #
      
      #
      # Default kernel and ramdisk to use for the virtual servers
      #
      kernel = /boot/vmlinuz-2.6.18-5-xen-amd64
      initrd = /boot/initrd.img-2.6.18-5-xen-amd64
      
      #
      #  The architecture to use when using debootstrap or rpmstrap.
      #
      #  This is most useful on 64 bit host machines, for other systems it
      # doesn't need to be used.
      #
       arch=i386
      #
      
      #
      # The default mirror for debootstrap which can be used to install
      # Debian Sid, Sarge, and Etch.
      #
      mirror = http://ftp.uk.debian.org/debian/
      
      #
      # A mirror suitable for use when installing the Dapper release of Ubuntu.
      #
      # mirror = http://gb.archive.ubuntu.com/ubuntu/
      
      #
      #  Uncomment if you wish newly created images to boot once they've been
      # created.
      #
      boot = 1
      
  • xen-create-image --hostname=fiona --dist=etch --ip=10.10.3.162
  • do a tail -f /var/log/xen-tools/hostname.log to see setup info
  • General Information
    --------------------
    Hostname       :  fiona
    Distribution   :  etch
    Fileystem Type :  ext3
    
    Size Information
    ----------------
    Image size     :  4Gb
    Swap size      :  128Mb
    Image type     :  full
    Memory size    :  128Mb
    Kernel path    :  /boot/vmlinuz-2.6.18-5-xen-amd64
    Initrd path    :  /boot/initrd.img-2.6.18-5-xen-amd64
    
    Networking Information
    ----------------------
    IP Address 1   : 10.10.3.162
    Netmask        : 255.255.128.0
    Gateway        : 10.10.10.12
    
    
    Creating ext3 filesystem on /dev/helios164/fiona-disk
    Done
    
    Installing your system with debootstrap mirror http://ftp.uk.debian.org/debian/
    Done
    
    Running hooks
    Done
    
    No role script specified.  Skipping
    
    Creating Xen configuration file
    Done
    Setting up root password
    Enter new UNIX password:
    Retype new UNIX password:
    passwd: password updated successfully
    All done
    
    
    Logfile produced at:
             /var/log/xen-tools/fiona.log
    • So created 3 machines (takes like 10 minutes per machine)
      • fiona = etch 10.10.3.162
      • frosty = etch 10.10.3.161
      • freya = etch 10.10.3.160
    • each machine has a lvm on dom0 for disk and swap
  • do a unixbench now in one of the virtual machines
    • copy unixbench dir to fiona (10.10.3.160)
    • aptitude make gcc
    • make clean
    • make
    • vim ./Run and add "debian" after Flavor
    • screen
    • ./Run
    • Strange always get bad results on domU benchmarks
    •   BYTE UNIX Benchmarks (Version 4.1.0)
        System -- Linux fiona 2.6.18-5-xen-amd64 #1 SMP Tue Oct 2 21:48:12 UTC 2007 x86_64 GNU/Linux
        Start Benchmark Run: Wed Oct 31 13:56:16 UTC 2007
         1 interactive users.
         13:56:16 up 43 min,  1 user,  load average: 0.00, 0.00, 0.00
        lrwxrwxrwx 1 root root 4 Oct 31 11:05 /bin/sh -> bash
      
        /dev/sda1              4128448    474712   3444024  13% /
      Dhrystone 2 using register variables       no measured results
      Double-Precision Whetstone                 no measured results
      System Call Overhead                       no measured results
      Pipe Throughput                            no measured results
      Pipe-based Context Switching               no measured results
      Process Creation                           no measured results
      Execl Throughput                           no measured results
      File I/O                                   no measured results
      File I/O                                   no measured results
      File I/O                                   no measured results
      Shell Scripts (1 concurrent)               no measured results
      Shell Scripts (8 concurrent)               no measured results
      Shell Scripts (16 concurrent)              no measured results
      Arithmetic Test (type = short)             no measured results
      Arithmetic Test (type = int)               no measured results
      Arithmetic Test (type = long)              no measured results
      Arithmetic Test (type = float)             no measured results
      Arithmetic Test (type = double)            no measured results
      Arithoh                                    no measured results
      C Compiler Throughput                      no measured results
      Dc: sqrt(2) to 99 decimal places           no measured results
      Recursion Test--Tower of Hanoi             no measured results
      
      
                           INDEX VALUES
      TEST                                        BASELINE     RESULT      INDEX
      
      Dhrystone 2 using register variables        116700.0        0.0        0.0
      Double-Precision Whetstone                      55.0        0.0        0.0
      Execl Throughput                                43.0        0.0        0.0
      Pipe Throughput                              12440.0        0.0        0.0
      Pipe-based Context Switching                  4000.0        0.0        0.0
      Process Creation                               126.0        0.0        0.0
      Shell Scripts (8 concurrent)                     6.0        0.0        0.0
      System Call Overhead                         15000.0        0.0        0.0
                                                                       =========
           FINAL SCORE                                                       0.0
  • On domU machines there should be /usr/bin/time which is not available
  • Hi Guys,
    Found the problem, in the Run file it states that you must have /usr/bin/time installed.
    For gentoo users you need to emerge sys-apps/tim
     http://www.unix.com/linux-benchmarks/30453-results-linux-benchmarks.html#post48556
  • aptitude install time
14:08:33 up 55 min,  1 user,  load average: 0.37, 0.09, 0.03
  lrwxrwxrwx 1 root root 4 Oct 31 11:05 /bin/sh -> bash

  /dev/sda1              4128448    474864   3443872  13% /
Dhrystone 2 using register variables     4987534.8 lps   (10.0 secs, 10 samples)
Double-Precision Whetstone                 1713.1 MWIPS (10.0 secs, 10 samples)
System Call Overhead                     214913.1 lps   (10.0 secs, 10 samples)
Pipe Throughput                          243323.5 lps   (10.0 secs, 10 samples)
Pipe-based Context Switching              64150.6 lps   (10.0 secs, 10 samples)
Process Creation                           3137.5 lps   (30.0 secs, 3 samples)
Execl Throughput                           1481.0 lps   (29.7 secs, 3 samples)
File Read 1024 bufsize 2000 maxblocks    410751.0 KBps  (30.0 secs, 3 samples)
File Write 1024 bufsize 2000 maxblocks   234966.0 KBps  (30.0 secs, 3 samples)
File Copy 1024 bufsize 2000 maxblocks    146114.0 KBps  (30.0 secs, 3 samples)
File Read 256 bufsize 500 maxblocks      120482.0 KBps  (30.0 secs, 3 samples)
File Write 256 bufsize 500 maxblocks      67221.0 KBps  (30.0 secs, 3 samples)
File Copy 256 bufsize 500 maxblocks       41871.0 KBps  (30.0 secs, 3 samples)
File Read 4096 bufsize 8000 maxblocks    1102356.0 KBps  (30.0 secs, 3 samples)
File Write 4096 bufsize 8000 maxblocks   587551.0 KBps  (30.0 secs, 3 samples)
File Copy 4096 bufsize 8000 maxblocks    368199.0 KBps  (30.0 secs, 3 samples)
Shell Scripts (1 concurrent)               2272.6 lpm   (60.0 secs, 3 samples)
Shell Scripts (8 concurrent)                317.9 lpm   (60.0 secs, 3 samples)
Shell Scripts (16 concurrent)               159.3 lpm   (60.0 secs, 3 samples)
Arithmetic Test (type = short)           424440.1 lps   (10.0 secs, 3 samples)
Arithmetic Test (type = int)             424611.7 lps   (10.0 secs, 3 samples)
Arithmetic Test (type = long)            424804.0 lps   (10.0 secs, 3 samples)
Arithmetic Test (type = float)           817228.5 lps   (10.0 secs, 3 samples)
Arithmetic Test (type = double)          817655.6 lps   (10.0 secs, 3 samples)
Arithoh                                       nan lps   (10.0 secs, 3 samples)
C Compiler Throughput                       845.9 lpm   (60.0 secs, 3 samples)
Dc: sqrt(2) to 99 decimal places         123828.2 lpm   (30.0 secs, 3 samples)
Recursion Test--Tower of Hanoi           111427.1 lps   (20.0 secs, 3 samples)


                     INDEX VALUES
TEST                                        BASELINE     RESULT      INDEX

Dhrystone 2 using register variables        116700.0  4987534.8      427.4
Double-Precision Whetstone                      55.0     1713.1      311.5
Execl Throughput                                43.0     1481.0      344.4
File Copy 1024 bufsize 2000 maxblocks         3960.0   146114.0      369.0
File Copy 256 bufsize 500 maxblocks           1655.0    41871.0      253.0
File Copy 4096 bufsize 8000 maxblocks         5800.0   368199.0      634.8
Pipe Throughput                              12440.0   243323.5      195.6
Pipe-based Context Switching                  4000.0    64150.6      160.4
Process Creation                               126.0     3137.5      249.0
Shell Scripts (8 concurrent)                     6.0      317.9      529.8
System Call Overhead                         15000.0   214913.1      143.3
                                                                 =========
     FINAL SCORE                                                     297.4

  • Asked for some IP addresses so there are no possible conflicts
    • Got 8 ip adresses : 10.10.3.57 - .64
    • hostnames are helios157 - helios164
  • finalize vserver install
    • Neworking: bridging
      • iptables -t NAT -A PREROUTING -d GUEST_IP_ADDRESS -i eth0 -j ACCEPT
      • iptables v1.3.6: can't initialize iptables table `NAT': Table does not exist (do you need to insmod?)
        Perhaps iptables or your kernel needs to be upgraded.
      • solved by using iptables -t nat -A PREROUTING -d 10.10.3.159 -i eth0 -j ACCEPT
      • installed aptitude install vserver-debiantools
      • dupvserver --from fiona --to frosty --ip 10.10.3.158
      • vserver frosty start
      • vserver frosty enter
      • ifconfig gives correct ip
  • unixbench on vserver-guest
  •     15:07:09 up 14 min,  0 users,  load average: 0.10, 0.04, 0.01
      lrwxrwxrwx 1 root root 4 Oct 31 14:48 /bin/sh -> bash
    
      /dev/hdv1              2955216    884376   1920724  32% /
    Dhrystone 2 using register variables     5062950.0 lps   (10.0 secs, 10 samples)
    Double-Precision Whetstone                 1625.0 MWIPS (9.7 secs, 10 samples)
    System Call Overhead                     933626.3 lps   (10.0 secs, 10 samples)
    Pipe Throughput                          616916.2 lps   (10.0 secs, 10 samples)
    Pipe-based Context Switching             194753.6 lps   (10.0 secs, 10 samples)
    Process Creation                          10271.7 lps   (30.0 secs, 3 samples)
    Execl Throughput                           3367.0 lps   (29.8 secs, 3 samples)
    File Read 1024 bufsize 2000 maxblocks    817991.0 KBps  (30.0 secs, 3 samples)
    File Write 1024 bufsize 2000 maxblocks   339328.0 KBps  (30.0 secs, 3 samples)
    File Copy 1024 bufsize 2000 maxblocks    235456.0 KBps  (30.0 secs, 3 samples)
    File Read 256 bufsize 500 maxblocks      306377.0 KBps  (30.0 secs, 3 samples)
    File Write 256 bufsize 500 maxblocks     120588.0 KBps  (30.0 secs, 3 samples)
    File Copy 256 bufsize 500 maxblocks       79795.0 KBps  (30.0 secs, 3 samples)
    File Read 4096 bufsize 8000 maxblocks    1759462.0 KBps  (30.0 secs, 3 samples)
    File Write 4096 bufsize 8000 maxblocks   890833.0 KBps  (30.0 secs, 3 samples)
    File Copy 4096 bufsize 8000 maxblocks    562739.0 KBps  (30.0 secs, 3 samples)
    Shell Scripts (1 concurrent)               4050.0 lpm   (60.0 secs, 3 samples)
    Shell Scripts (8 concurrent)                563.3 lpm   (60.0 secs, 3 samples)
    Shell Scripts (16 concurrent)               282.3 lpm   (60.0 secs, 3 samples)
    Arithmetic Test (type = short)           425054.8 lps   (10.0 secs, 3 samples)
    Arithmetic Test (type = int)             425290.7 lps   (10.0 secs, 3 samples)
    Arithmetic Test (type = long)            425290.5 lps   (10.0 secs, 3 samples)
    Arithmetic Test (type = float)           818383.0 lps   (10.0 secs, 3 samples)
    Arithmetic Test (type = double)          818503.0 lps   (10.0 secs, 3 samples)
    Arithoh                                       nan lps   (10.0 secs, 3 samples)
    C Compiler Throughput                      1012.0 lpm   (60.0 secs, 3 samples)
    Dc: sqrt(2) to 99 decimal places         327733.1 lpm   (30.0 secs, 3 samples)
    Recursion Test--Tower of Hanoi           111501.0 lps   (20.0 secs, 3 samples)
    
    
                         INDEX VALUES
    TEST                                        BASELINE     RESULT      INDEX
    
    Dhrystone 2 using register variables        116700.0  5062950.0      433.8
    Double-Precision Whetstone                      55.0     1625.0      295.5
    Execl Throughput                                43.0     3367.0      783.0
    File Copy 1024 bufsize 2000 maxblocks         3960.0   235456.0      594.6
    File Copy 256 bufsize 500 maxblocks           1655.0    79795.0      482.1
    File Copy 4096 bufsize 8000 maxblocks         5800.0   562739.0      970.2
    Pipe Throughput                              12440.0   616916.2      495.9
    Pipe-based Context Switching                  4000.0   194753.6      486.9
    Process Creation                               126.0    10271.7      815.2
    Shell Scripts (8 concurrent)                     6.0      563.3      938.8
    System Call Overhead                         15000.0   933626.3      622.4
                                                                     =========
         FINAL SCORE                                                     593.4


Sign in to add a comment
Powered by Google Project Hosting