有没有人理解处理时间、使用中间文件或使用管道时的巨大差异?我在新的 debian 挤压服务器上使用标准工具将 tiff 转换为 pdf。执行此操作的标准方法是先转换为 ps。
无管:
root@web5:~# time tiff2ps test.tif > test.ps
real 0m0.860s
user 0m0.744s
sys 0m0.112s
root@web5:~# time ps2pdf13 -sPAPERSIZE=a4 test.ps > test.pdf
real 0m0.667s
user 0m0.612s
sys 0m0.060s
Run Code Online (Sandbox Code Playgroud)
配管:
root@web5:~# time tiff2ps test.tif | ps2pdf13 -sPAPERSIZE=a4 - > test.pdf
real 1m6.098s
user 0m15.861s
sys 0m50.9
Run Code Online (Sandbox Code Playgroud)
在最后一条命令期间,gs 进程始终处于 100%。
更新:
这是 ps 生成的 strace 输出:
root@web5:~# strace tiff2ps test.tif > test.ps
execve("/usr/bin/tiff2ps", ["tiff2ps", "test.tif"], [/* 28 vars */]) = 0
brk(0) = 0x1395000
access("/etc/ld.so.nohwcap", F_OK) …Run Code Online (Sandbox Code Playgroud) 我们有一台带有 Adaptec 5805 RAID 1 阵列的服务器,带有两个 SAS 146GB 磁盘。我们需要此服务器上的更多空间。
是否可以将每个 146GB 硬盘热替换为 300GB 硬盘,并让控制器在每次磁盘更改后重建阵列?第二个磁盘更改后,新空间是否自动可见?