Tuesday, October 27, 2009

Notification Chains

Notification Chains

For Network subsystem: example code
For System reboot: example code

Monday, October 26, 2009

Gigabit Ethernet Controller

Pseudo Linux Network Device Driver (tar.gz)

Monday, October 12, 2009

Another Beginning

Timestamp

Tuesday, September 29, 2009

Linux Timer

  • Low-Resolution Timer

  • Time Stamp: Jiffy

  • High-Resolution Timer

  • Time Stamp: Nanosecond
    Clock Base: (1) Monotonic Clock (2) Real Time Clock

  • Dynamic Tick

  • Power Management

    Objects for Time Management
    Clock Sources
    Clock Event Devices
    Tick Devices

    Saturday, September 12, 2009

    Linux IO Scheduler

    The IO Schedulers

  • No-op Scheduler

  • This scheduler only implements request merging.

  • Anticipatory IO Scheduler (AS)

  • This scheduler implements request merging, a one-way elevator, read and write request batching, and attempts some anticipatory reads by holding off a bit after a read batch if it thinks a user is going to ask for more data.

    This is optimised for the single disk systems.

  • Deadline Scheduler

  • The scheduler implements request merging, a one-way elevator, and imposes a deadline on all operations to prevent resource starvation.

  • Complete Fair Queueing Scheduler (CFQ)

  • The scheduler implements both request merging and the elevator, and attempts to give all users of a particular device the same number of IO requests over a particular time interval.

    References:
    Linux I/O Schedulers

    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)