SR-IOV Presentation
Here is my presentation about SR-IOV technology with Xen hypervisor
Here is my presentation about SR-IOV technology with Xen hypervisor
Download nbench from: http://www.tux.org/~mayer/linux/nbench-byte-2.2.3.tar.gz
Extract and install it:
1 | # tar -xvzf nbench-byte-XXXX.tar.gz |
1 | # git clone git://git.kernel.dk/fio.git |
1 | # cd fio |
No need to install, almost all of the linux distributions have this tool, it is included in coreutils package on RHEL and Fedora.
Clone dbench from its git repo
1 | # git clone git://git.samba.org/sahlberg/dbench.git dbench |
Compiling
1 | # cd dbench |
And that should be it. You should now have dbench installed on your system.
DBENCH is a tool to generate I/O workloads to either a filesystem or to a networked CIFS or NFS server. It can even talk to an iSCSI target. DBENCH can be used to stress a filesystem or a server to see which workload it becomes saturated and can also be used for preditcion analysis to determine “How many concurrent clients/applications performing this workload can my server handle before response starts to lag?”
DBENCH provides a similar benchmarking and client emulation that is implemented in SMBTORTURE using the BENCH-NBENCH test for CIFS, but DBENCH can play these loadfiles onto a local filesystem instead of to a CIFS server. Using a different type of loadfiles DBENCH can also generate and measure latency for NFS.
At the heart of DBENCH is the concept of a “loadfile”. A loadfile is a sequence of operations to be performed once statement at a time. This could be operations such as “Open file XYZ”, “Read 5 bytes from offset ABC”, “Close the file”, etc etc.
By carefully crafting a loadfile it is possible to describe an I/O pattern that almost exactly matches what a particular application performs. While cumbersome to produce, such a loadfile it does allow you to describe exactly how/what an application performs and “replay” this sequence of operations any time you want.
Each line in the DBENCH loadfile contain a timestamp for the operation. This is used by DBENCH to try to keep the same rate of operations as the original application. This is very useful since this allows to perform accurate scalability predictions based on the exact application we are interested in. and not an artificial benchmark which may or may not be relevant to our particular applications workload pattern.
At https://dbench.samba.org/web/index.html you can find three loadfile template to use:
The following command should be OK for most of the testing situations(run dbench for 10 hours):1
# dbench -c /usr/share/dbench/client.txt -D ./ -t 36000 10
Note:
This command stress the local filesystem, if you want to stress a NFS/SMB/iSCSI server, please learn more about dbench.
1 | # dbench -c /usr/share/dbench/client.txt -D ./ -t 10 100 |
It gives out four numbers like this (this is from a 100 client run on fedora22 host):`sh
Throughput 36.0963 MB/sec 100 clients 100 procs max_latency=2152.252 ms
The first is the true throughput as seen by dbench, the larger the batter. The last is the I/O latency, the smaller the better.
Note:
One question some people may ask is whether the above represents a realistic load on a fileserver. It doesn’t. Nearly 90% of the read/write IO operations in netbench are writes whereas in a “normal” office load reads dominate. Also, the load is much higher than a normal office PC would put on a server. There aren’t many office PCs that write over a hundred megabytes of data to a server in a few minutes, unless maybe they are copying a CD.
That doesn’t mean the benchmark is useless, it just means you shouldn’t use this for purchasing decisions unless you really understand the results and how they relate to your environment.
每个人都有自己写博客的方式, 我来分享下我是怎么写博客的。
在 GIMP 中打开原始图片。
点击 图像 菜单选择 缩放图像…
确保宽/高比例是锁定的(链条连接)。
修改宽度或高度,是两者都符合或小于需要的图片尺寸。
点击 缩放 按钮
选择整幅图片(Ctrl + A 或点击菜单 选择 > 全部 )
点击 文件 > 新建,创建一个新的图片。
设置图像大小为需要的解析度
选择高级选项并设置填充透明。
点击 确定
复制重设过大小的图片内容到新创建的图片
保存新图片为 PNG 文件。