ltp-ddt eth_parallel_processing
ETH_S_FUNC_PARALLEL_PROCESSING:
source 'common.sh';
prepare_nfs_mount.sh "/mnt/nfs_mount"|| die "Mounting NFS Failed";
multi_run_processes.sh -s "/opt/ltp/runltp -f ddt/eth_ping -P $PLATFORM -s ETH_XS_FUNC_PING # dd if=/dev/urandom of=/mnt/nfs_mount/dd_test bs=1M count=100" -l "-n 2 -a 0x1 -d 1";
unmount_nfs.sh "/mnt/nfs_mount"
prepare_nfs_mount.sh:
source "common.sh" # Import do_cmd(), die() and other functions
if [ -n "$1" ]
then
mount_point=$1
`check_env_var 'NFS_SERVER'`
`check_env_var 'NFS_ROOT_PATH'`
mkdir -p $mount_point
umount $mount_point
mount -t nfs -o nolock,addr=$NFS_SERVER $NFS_SERVER':'$NFS_ROOT_PATH $mount_point
else
die "NFS mount point needs to be provided as parameter to script"
fi
check_env_var in common.sh 看看是否存在这个环境变量
check_env_var() {
output_str=`env|grep $1`
if [ ${#output_str} == 0 ]
then
die "$1 not defined"
fi
}
所以需要定义NFS_SERVER和NFS_ROOT_PATH,可以放在env_tools.sh中
export NFS_SERVER=192.168.40.41
export NFS_ROOT_PATH=/home/zhangyi/work/psoc_ltp/ltp_mnt
mount -t nfs -o nolock,addr=$NFS_SERVER $NFS_SERVER':'$NFS_ROOT_PATH $mount_point
挂接有问题,改为
mount -t nfs -o nolock,addr=$NFS_SERVER,nfsvers=3,vers=3 $NFS_SERVER':'$NFS_ROOT_PATH $mount_point
multi_run_processes.sh -s "/opt/ltp/runltp -f ddt/eth_ping -P $PLATFORM -s ETH_XS_FUNC_PING # dd if=/dev/urandom of=/mnt/nfs_mount/dd_test bs=1M count=100" -l "-n 2 -a 0x1 -d 1";
# usage:
# multi_run_processes.sh <process list> [<process list2> ...] -v
# where -v is an optional flag and when present indicates that priority
# of two processes has to be verified using time taken
# for process execution
#
# process_list= -s "#-separated commands" -l "-n <num_instances>
# -a <cpu affinity mask> -d <inter-process start delay>
# -p <priority> -r <realtime priority>"
-s "#-separated commands" #命令
-n <num_instances>. #跑几个process
-a <cpu affinity mask>
ltp-ddt eth_parallel_processing的更多相关文章
- LTP随笔——本地调用ltp之ltp4j
关于ltp本地调用的相关参考请见LTP的Git项目:https://github.com/HIT-SCIR 以下以/home/lion/Desktop路径为例下面教程中出现的具体路径以你实际配置的为准 ...
- ZH奶酪:自然语言处理工具LTP语言云调用方法
前言 LTP语言云平台 不支持离线调用: 支持分词.词性标注.命名实体识别.依存句法分析.语义角色标注: 不支持自定义词表,但是你可以先用其他支持自定义分词的工具(例如中科院的NLPIR)把文本进行分 ...
- Eclipse DDT
http://www.eclipse.org/downloads/ https://github.com/DDT-IDE/DDT/blob/latest/documentation/UserGuide ...
- ASP.NET中常用的几个李天平开源公共类LTP.Common,Maticsoft.DBUtility,LtpPageControl
ASP.NET中常用的几个开源公共类: LTP.Common.dll: 通用函数类库 源码下载Maticsoft.DBUtility.dll 数据访问类库组件 源码下载LtpPageC ...
- 很好的一篇讲LTP在编解码中的作用的文章
原文链接 LONG-TERM PREDICTION by: Adit Aviv Kfir Grichman introduction: The speech signal has been ...
- ASP.NET中常用的几个李天平开源公共类LTP.Common,Maticsoft.DBUtility,LtpPageControl (转)
ASP.NET中常用的几个开源公共类: LTP.Common.dll: 通用函数类库 源码下载Maticsoft.DBUtility.dll 数据访问类库组件 源码下载LtpPageC ...
- 编译哈工大语言技术平台云LTP(C++)源码及LTP4J(Java)源码
转自:编译哈工大语言技术平台云LTP(C++)源码及LTP4J(Java)源码 JDK:java version “1.8.0_31”Java(TM) SE Runtime Environment ( ...
- LTP学习
下载LTP源码和模型文件: https://github.com/linux-test-project/ltp 官方说明文档 http://ltp.readthedocs.org/zh_CN/late ...
- LTP 分词算法实践
参考链接: https://github.com/HIT-SCIR/ltp/blob/master/doc/install.rst http://www.xfyun.cn/index.php/serv ...
随机推荐
- DAY 5 下午
每个点一定属于一个重链 重链条数和轻边边数是logn级别 证明和启发式合并差不多 因为轻子树的大小至少是重子树大小-1 树链剖分:两遍dfs 第一次:统计子树大小,确定重儿子 第二次:把重链剖出来 每 ...
- 再说vim 乱码问题
在vimrc设置中, 可以简写: file = f encoding = enc fileencodings = fencs fileencoding = fenc 主要有四个编码, 要了解它们的含义 ...
- 【C++】fill函数,fill与memset函数的区别
转载自:https://blog.csdn.net/liuchuo/article/details/52296646 memset函数 按照字节填充某字符在头文件<cstring>里面fi ...
- iView 实战系列教程(21课时)_2.iView 实战教程之导航、路由、鉴权篇
在c盘创建一个iview-router的项目 . 然后使用默认的配置 跳过 添加vue-router的插件 编译我们的文件. 编译好之后,我们启动App 默认的页面就打开了. 默认两个路由一个是abo ...
- shell脚本中执行python脚本并接收其返回值的例子
1.在shell脚本执行python脚本时,需要通过python脚本的返回值来判断后面程序要执行的命令 例:有两个py程序 hello.py 复制代码代码如下: def main(): pri ...
- sqluldr2 oracle直接导出数据为文本的小工具使用
近期客户有需求,导出某些审计数据,供审计人进行核查,只能导出成文本或excel格式的进行查看,这里我们使用sqluldr2工具进行相关数据的导出. oracle导出数据为文本格式比较麻烦,sqluld ...
- NOPI导入导出EXCEL
一.简介 1. 什么是NPOI NPOI,顾名思义,就是POI的.NET版本.那POI又是什么呢?POI是一套用Java写成的库,能够帮助开发者在没有安装微软Office的情况下读写Office 97 ...
- python+selenium下拉列表option对象操作方法二
options = driver.find_elements_by_tag_name('option') #获取所有的option子元素 o ...
- Error querying database. Cause: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'ItemsCustom' in 'class com.pojo.OrderDetailCustom
再用 junit 测试MyBatis时发现的错误: org.apache.ibatis.exceptions.PersistenceException: ### Error querying data ...
- Sql Server 之游标
一般来说,我们通过SQL一般是面向集合进行数据操作,但是游标提供给我们更加强大的功能可以对数据集合进行逐行遍历有选择性的操作处理.当然游标也有其不可避免的缺陷就是:低效和复杂.所以一般正常的操作处理不 ...