FIO是测试IOPS的非常好的工具,用来对硬件进行压力测试和验证,支持13种不同的I/O引擎,包括:sync,mmap, libaio, posixaio, SG v3, splice, null, network, syslet, guasi, solarisaio 等等。 安装 下载地址 wge ...
分类:
其他好文 时间:
2016-05-21 21:34:31
阅读次数:
214
首先定义mex(minimal excludant)运算,这是施加于一个集合的运算,表示最小的不属于这个集合的非负整数。例如mex{0,1,2,4}=3、mex{2,3,5}=0、mex{}=0。 对于一个给定的有向无环图,定义关于图的每个顶点的Sprague-Grundy函数g如下:g(x)=me ...
分类:
其他好文 时间:
2016-05-18 21:54:10
阅读次数:
209
小试了一把预计算全局光照,作为PRT的上级应用。完全自行实现,使用SG/SH、H-Basis基波对GI光场进行频域压缩,存在3D纹理中,用于2跳间接光照实时显示。其中坑点不少,尤其是在HDR环境下使用不同的低频基带截断近似时,会出现相当多的问题,所幸一路趟过。以下截图没有组合屏幕空间光照等其他效果。 ...
分类:
其他好文 时间:
2016-04-19 11:41:29
阅读次数:
183
线程的同步与互斥多线程往往会引起很多问题,比如下面所示代码:1#include<stdio.h>
2#include<pthread.h>
3intg_val=0;
4void*test(void*arg)
5{
6intcount=5000;
7inttmp=0;
8while(count-->0)
9{
10tmp=g_val;
11printf("%sg_val=%d\n",arg,g_val);
12g_val=..
分类:
编程语言 时间:
2016-04-17 17:59:16
阅读次数:
248
【题目】 Description The funny stone game is coming. There are n piles of stones, numbered with 0, 1, 2, ..., n ? 1. Twopersons pick stones in turn. In ev ...
分类:
其他好文 时间:
2016-04-17 17:51:14
阅读次数:
460
linux使用FIO测试磁盘的iops 2013-09-23 10:59:21 分类: LINUX FIO是测试IOPS的非常好的工具,用来对硬件进行压力测试和验证,支持13种不同的I/O引擎,包括:sync,mmap, libaio, posixaio, SG v3, splice, null, ...
分类:
系统相关 时间:
2016-04-17 06:25:59
阅读次数:
201
F - Again Stone Game Time Limit:2000MS Memory Limit:32768KB 64bit IO Format:%lld & %llu Submit Status F - Again Stone Game Submit Status Description A ...
分类:
其他好文 时间:
2016-04-15 21:52:30
阅读次数:
344
D - Partitioning Game Time Limit:4000MS Memory Limit:32768KB 64bit IO Format:%lld & %llu Submit Status D - Partitioning Game Submit Status Description ...
分类:
其他好文 时间:
2016-04-15 21:39:50
阅读次数:
224
G - Game of Hyper Knights Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%lld & %llu Submit Status G - Game of Hyper Knights Submit Status Des ...
分类:
其他好文 时间:
2016-04-15 21:35:19
阅读次数:
375