|
→
|
Projects & Tools
LKPG & createDist |
cpusage
Within the scope of my master thesis I enhanced the Linux Kernel Packet
Generator (LKPG) to be able to generate packets according to a given packet size
distribution. This was necessary because it unenhanced the LKPG can only
generate packets of the same size. The mechanism used to set this up is the
same as used for the rest of this Linux kernel module: the /proc
filesystem.
How to use my enhancement: HowTo
The sources for Linux kernel v2.6.8: pktgen-lkpg-dist-0.1.tar.gz.
I am working on an recent version as well, but the author of the LKPG
Robert Olsson perfomed a major rework of the module, which was published
since Linux kernel version 2.6.11.x. These change still have to be adopted
for my enhancement.
This example packet size distribution is available:
pktgen-lkpg-dist-0.1-example-distribution.sh.
This shell script sets the usage of the distribution up.
The included packet size distribution was derived from a 24h trace (ca.
3,88 billion packets). This trace was done at the uplink of the
MWN to the
G-WiN.
Who doesn't want to write his distribution from scratch could use my
createDist program:
With this tool for Linux and FreeBSD it is possible to monitor the CPU
usage. Twice a second it writes the recent percentages of the different CPU
states tics counter to disk.
|