s****n 发帖数: 700 | 1 Thanks for your reply.
Say I write a C program at serv1 which excute " ssh serv2; ls", how can I
get the "serv2 ls" result in the c program. |
|
s****n 发帖数: 700 | 2 sorry I am not quite understand.
Say I want to write a program in serv1, the program does 'ssh serv2; ls'.
How can I get the result of 'serv2 ls' at serv1's program. |
|
h****r 发帖数: 117 | 3 The cost depends on where you want to live. On-campus Graduate house (sansom
place http://www.upenn.edu/resliv/gp.html ) will be 550 for a double-room
(share kitchen and bathroom). Houses a little far away (10-15 walking) in west
philadelphia are cheaper. http://ocl-serv2.busi.upenn.edu/advanced.html Most
Chinese students live in that area. If you want to share, then 300-500 will be
enough. If you come to school in May, you should begin to find a house now. As
to driving to school, it is not so |
|
|
d********r 发帖数: 3279 | 5 挣包子咯
Smith有没有卖不知道,walmart有卖,或者直接网上买:https://secure.utah.gov/
serv2-hflo/hflo/login
walmart, dick's, cabelas, sportsman's warehouse
Utah 任何季节都能钓,现在是去各个reservoir 钓bass和perch的时候
偶尔玩玩的话不用买专门衣服和鞋子了,认真的话,要趟水下河里钓野生trout就要买
wader,上述4个店里都有卖的,50到数百不等
注意学习相关法律法规。
现在外州,9月以后吧 |
|
c*****h 发帖数: 14923 | 6 怎么设置subdomain呢?
比如申请了一个catty.com,想要把serv1.catty.com指向
一台机器(不是URL forwarding)。。。serv2.catty.com指向另外一个,
请问在它自带的服务上面怎么设置呢?谢,, |
|
s****n 发帖数: 700 | 7 ubuntu server 1:
Intel(R) Xeon(R) CPU E5430 @ 2.66GHz
8G memory
ubuntu server 2:
Intel(R) Xeon(TM) CPU 3.40GHz
2G memory
ubuntu server 3:
Intel(R) Xeon(R) CPU X5570 @ 2.93GHz
24G memory
I am running same program in the three linux boxes. I found the speed of
server 1 > serv3 >> serv2 while checking the "real time" and "system time"
using time command for the program.
Two things make me real confused,
1. serv3 is the fastest computer, why it's slower than serv1
2. I can't |
|
s****n 发帖数: 700 | 8 I didn't express myself clearly.
I know serv3 should be the fastest computer. However when I use time command
to check the program, it shows serv3 is not the fastest one. Its consumed
cpu time is longer than serv1.
Also the program consumed cpu time in serv2 is 5 times longer than serv1 and
serv3. Could you explain the reason?
components. |
|
g*******g 发帖数: 108 | 9 Here are my two cents.
Let's make two assumptions, your program requires 8G memory.
Your program's bottleneck is memory access latency.
1)
A server with more memory and cpu won't automatically translate into better
performance.
In your case. Serv3 has more memory, which requires more CPU to manage.
Your program does not need 24G, (probably 8G is enough) The 16G extra acts
as burden to CPU. So Serv3 is slower than serv2 even with more CPU and
Memory
2)
Your program hits a memory capacity bott |
|
s****n 发帖数: 700 | 10 the file will locate at serv2.
So Do I need copy the file to serv1 and read it? Is there an simple way to
do that? |
|
s****n 发帖数: 700 | 11 do some other things using the result from serv2. |
|
X****r 发帖数: 3557 | 12 #include
#include
int main() {
int fd[2];
pipe(fd);
if (fork()) {
close(1);
dup2(fd[1], 1);
execlp("ssh", "ssh", "serv2", "ls");
} else {
int len;
char buf[256];
while ((len = read(fd[0], buf, 256)) >= 0) {
/* Process piece of output from buf[0] to buf[len-1]. */
}
wait(0);
}
}
ls'. |
|