ChinaUnix.net
相关文章推荐:

Linux bonnie 例子

bonnie++可以自动输出测试结果吗? 运行格式如何?不会用笔抄吧,因为屏幕输出的结果太乱了, 所以想存文件看看. bon_csv2html和bon_csv2txt又怎么用呢?

by hzcall - Linux论坛 - 2003-07-31 12:44:03 阅读(898) 回复(3)

相关讨论

bonnie++可以自动输出测试结果吗? 运行格式如何?不会用笔抄吧,因为屏幕输出的结果太乱了, 所以想存文件看看. bon_csv2html和bon_csv2txt又怎么用呢?

by hzcall - Linux系统管理 - 2003-07-31 12:44:03 阅读(697) 回复(3)

大家好: 最近在看linux网络编程,关于socket编程的一个例子弄不明白,下面是代码: server.c: [code]1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include ...

by yangfan876 - Linux环境编程 - 2012-10-09 15:55:02 阅读(8766) 回复(15)

#!/bin/bash PrintHelp() { echo FORMAT: command arg echo NOTE: the arg must be number echo such as : command 100000 return } if [ $# -lt 1 ]; then PrintHelp exit -1 fi if [[ $1 == *[!0-9]* ]]; then echo " the arg must be number" exit -1 fi echo `date +%Y%m%d%H%M%S` - INFO - 101 - 0 - 25002 - 600061470 - 98765432101 echo `date +%Y%m%d%H%M%S` - INFO - 101 -...

by lc0060305 - Linux文档专区 - 2009-11-19 13:58:54 阅读(508) 回复(0)

//lock.c #include #include #include #include struct flock* file_lock(short type, short whence) { static struct flock ret; ret.l_type = type ; ret.l_start = 0; ret.l_whence = whence; ret.l_len = 0; ret.l_pid = getpid(); return &ret; } int main() { int fd = open("1.txt", O_WRONLY|O_APPEND); for(int i=0; i close(fd); } //lock2.c...同lock.c相比只是修改了下bu...

by yjm0573 - Linux文档专区 - 2008-12-17 11:22:04 阅读(1188) 回复(0)

用lustre做了个集群, 简单用bonnie++测试了一下, 贴个结果,大家评判一下。有许多对lustre不懂的地方, 还需要和大家多多交流. 用了三台linux机器做oss, 第台机器3个500G sata盘做ost,共9个ost,mdt和mgs在同一台机器上,64位rhel4.4系统, 使用的是TCP链接, 千M网卡,下面是在client上做的bonnie++测试结果。 [code] Version 1.03c ------Sequential Output------ --Sequential Input- --Random- -P...

by moxnet - 分布式文件系统(FastDFS) - 2008-03-07 22:57:33 阅读(3224) 回复(7)

断断续续的学习了linux与shell命令有一段时间,想找一些完整的script来读读,学习高手们的script写法,以便提高一下。 网上难以找到完整的script,请求路过的各位,方便的话上传一些供新手们下载来拜读一下。

by vvmao - Shell - 2009-05-14 07:05:10 阅读(2098) 回复(3)

#includelinux/module.h> #includelinux/slab.h> #includelinux/vmalloc.h> unsigned char *pagemem; unsigned char *kmallocmem; unsigned char *vmallocmem; int init_module(void) { pagemem = get_free_page(0); printk("pagemem=%s",pagemem); kmallocmem = kmalloc(100,0); printk("kmallocmem=%s",kmallocmem); vmallocmem = vmalloc(1000000); printk("vmallocmem=%s",vmallocmem); } void cleanup_module(void) { ...

by whoisliang - Linux文档专区 - 2009-01-11 18:24:14 阅读(788) 回复(0)

hello, 我在用bonnie测试板子sd卡读写性能时发现速度很慢,我猜想慢可能是由于cpu占用率不够高导致的,怎样查CPU是在哪里sleep了呢? 而且我读写的大小比RAM还小,速度应该还要虚高。我测了几张卡 bonnie: Warning: You have 184MB RAM, but you test with only 100MB datasize! bonnie: This might yield unrealistically good results, bonnie: for reading and seeking and writing. bonnie 1.4: File './Bo...

by fei1700 - 嵌入式开发 - 2010-08-16 15:19:16 阅读(1629) 回复(0)

#include linux/module.h> #include linux/init.h> #include linux/list.h> #include linux/string.h> #include linux/slab.h> static struct list_head head; struct myinfo { struct list_head list; int var; }; static int __init sky_init(void) { struct myinfo *ptr; struct list_head *p; int i; INIT_LIST_HEAD(&head); for (i = 0; i 10; i++) { ptr = kmalloc(sizeof(st...

by whoisliang - Linux文档专区 - 2009-02-20 16:24:11 阅读(919) 回复(0)

之前在我的blog中转载了linux内核链表分析,其中分析和例子是基于2。6的内核的 ,最近在作2.4的东西,于是顺便将例子改成了2.4内核可以通过的版本 。呵呵 反正都改了就贴出来了 。 /********************************************************************* * * Filename: pfile.c * Version: 1.0 * Description: Demo for linux LIST utility * Compilation: gcc -D__KERNEL__ -I/usr/src...

by blowingwind - Linux文档专区 - 2007-04-10 13:43:23 阅读(686) 回复(0)