Hunter的大杂烩 技术学习笔记

2010-12-22

CompactFlash卡的技術参数

Filed under: 技术话题 — hunter @ 10:54 pm

Extreme Pro CompactFlashImage
容量:
64GB, 32GB & 16GB
讀寫速度: 90MB/s (600x)
UDMA: UDMA 6 (
任何UDMA下均能發揮)
參數: 檢視參數

Extreme CompactFlash
容量: 32GB, 16GB & 8GB
讀寫速度: 60MB/s (400x)
UDMA: UDMA 5(
(任何UDMA下均能發揮)
參數: 檢視參數
(more…)

遍历设备OID的脚本

Filed under: 技术话题 — hunter @ 2:59 pm

#!/bin/sh

OLDOID=””
NEWOID=”0″

count=0
while [ “$OLDOID” != “$NEWOID” ];
do
        OLDOID=$NEWOID
        bin/snmpgetnext -O s -v 2c -c public 192.168.0.1 $OLDOID
        NEWOID=`bin/snmpgetnext -O s -v 2c -c public 192.168.0.1 $OLDOID|awk ‘{print $1}’`
        echo $NEWOID
        count=`expr $count + 1`
        if [ $count -gt 10 ];then
                count=0
                sleep 1
        fi
done

2010-12-08

mogilefs测试报告

Filed under: 技术话题 — hunter @ 1:31 pm

背景:

1. 建立1tracker

2. 建立2storage(0.23,0.26)

 

性能测试

1. 上传 100 7M 文件,统计耗时,重复多次

   结论:

a.       Mogilefs自带的 mogstored稳定性不佳,在持续上传10个文件后会崩溃,替换为nginx之后,保持稳定

b.       测试数据:

   total upload:100
   time spend:114.306327105

   多次上传结果表示大文件平均处理速度大概是 1文件/s

(more…)

安装配置 mogilefs

Filed under: 技术话题 — hunter @ 1:23 pm

1. 下载

   http://search.cpan.org/dist/mogilefs-server/

   http://search.cpan.org/dist/MogileFS-Utils/

   http://search.cpan.org/dist/MogileFS-Client/

 

2. 创建db

 

   CREATE DATABASE mogilefs;

   GRANT ALL ON mogilefs.* TO ‘mogile’@’%’;

   SET PASSWORD FOR ‘mogile’@’%’ = OLD_PASSWORD( ‘sekrit’ );

   FLUSH PRIVILEGES;

 

2. perl 安装相关模块

perl -MCPAN -e shell  (如果初始化失败,可以重新输入“o conf init”进行初始化)

 

  (more…)

2010-12-02

PCRE 8.10 build on windows

Filed under: 技术话题 — hunter @ 12:25 pm

参考:http://blog.csdn.net/jollyjumper/archive/2010/06/28/5700024.aspx

1)config.h.generic->config.h,手动编辑其中的宏设置。在vc6下需要将HAVE_STDINT_H,HAVE_INTTYPES_H宏设为0。要让config.h中设置生效,需在工程中定义HAVE_CONFIG_H宏。
2)pcre.h.generic->pcre.h
3)如果使用默认的本地化字符表:pcre_chartables.c.dist->pcre_chartables.c
如要要生成新的pcre_chartables.c,单独编译dftables.c(注意如要让config.h生效定义HAVE_CONFIG_H宏),然后以参数pcre_chartables.c运行即可生成。还可以使用dftables的L选项。
4)在工程中添加:
config.h
pcre.h
pcre_internal.h
ucp.h

(more…)

« Newer PostsOlder Posts »

Powered by WordPress