Thursday, August 20, 2009

CPU affinity

Soft CPU affinity
Processes do not frequently migrate between processors.
Hard CPU affinity
Processes run on processors you specify.

The Linux kernel API:
  • To alter the bitmask
       sched_set_affinity()
  • To view the current bitmask
       sched_get_affinity()
  • Friday, August 14, 2009

    Memory Benchmark Test

    Memory Performance

    stream



    STREAM
    void
    STREAM_Copy (double *source, double *destination, int size) {
       int j;
       size=size/8;
       for (j=0; j < size; j++)
          source[j] = destination[j];
    }

    Byte Copy
    void
    byte_copy (char *source, char *destination, int size) {
       int j;
       for (j=0; j < size; j++)
          source[j] = destination[j];
    }
    
    
    
    
    Bandwidth (x86) (0.15, 32bits) (0.16, 64bits)

    Wednesday, August 12, 2009

    CPU Benchmark Test

    CPU Core

    nbench

    Floating-Point

    fp_bench

    CPU Utilization

    sysstat

    Storage Performance Test

    Disk I/O Performance

    CrystalDiskMark (2.2)

    datamark (0.0.4)

    dd (coreutils)

    [ ]# dd if=/dev/hda1 of=/dev/hdb1 bs=4k conv=noerror,sync

    dd_rescue

    [ ]# dd_rescue /dev/zero /media/disk/zero2G -m 2G

    File System Performance

    IOzone 3

    x86 version (bin) (src)
    ARM version (bin) (src)

    Iometer

    Bonnie++

    Misc:
    sar - system activity report
       Example: http://www.thegeekstuff.com/2011/03/sar-examples/
    iperf - perform network throughput tests
    hdparm - to test local disk performance of any bricks
    dbench - Measure disk throughput for simulated netbench run
    iozone - Filesystem Benchmark
    htop - interactive process viewer
    vnstat - a console-based network traffic monitor
    iftop - display bandwidth usage on an interface by host