Notification Chains
For Network subsystem: example code
For System reboot: example code
Tuesday, October 27, 2009
Monday, October 26, 2009
Monday, October 12, 2009
Tuesday, September 29, 2009
Linux Timer
Time Stamp: Jiffy
Time Stamp: Nanosecond
Clock Base: (1) Monotonic Clock (2) Real Time Clock
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
This scheduler only implements request merging.
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.
The scheduler implements request merging, a one-way elevator, and imposes a deadline on all operations to prevent resource starvation.
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()
Processes do not frequently migrate between processors.
Hard CPU affinity
Processes run on processors you specify.
The Linux kernel API:
sched_set_affinity()
sched_get_affinity()
Friday, August 14, 2009
Memory Benchmark Test
Memory Performance
stream
STREAM
Byte Copy
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];
}
Subscribe to:
Posts (Atom)