Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
为什么我连本地loopback 程序延时反而变大
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese)
View previous topic :: View next topic  
Author Message
data_come
n00b
n00b


Joined: 04 May 2013
Posts: 3
Location: china

PostPosted: Sun Jun 09, 2013 5:19 am    Post subject: 为什么我连本地loopback 程序延时反而变大 Reply with quote

client/front/server:
client:centos 6.3
front: gentoo-liveDVD 10.1
server: gentoo 20121221
3台均为hp 380G8/1*E5-2643 3.3G 4core/32G mem/broad
client---front---server ,front/server分别会返回client两个时间戳:t1/t2, 正常模式:t1/t2 =1.2ms/2.2ms
因为client/front 程序压力比较小,cpu 都在0.3%,内存利用率也很低,client--front之间的数据量不大,
现将client放到front上, 程序直接连 127.0.0.1:tcp port
按道理 client/front 在同一台机,缩小的网络延时,t1将降低,但实测发现
t1/t2=1.5/2.7ms
为什么,有什么方法也检查原因?
请大师指教
Back to top
View user's profile Send private message
druggo
Apprentice
Apprentice


Joined: 24 Sep 2003
Posts: 269
Location: Hangzhou, China

PostPosted: Wed Jun 12, 2013 2:30 am    Post subject: Reply with quote

直接抓包分析,看时间消耗在哪里了。
_________________
HighWayToHell(blog)
http://blog.druggo.org/
Back to top
View user's profile Send private message
data_come
n00b
n00b


Joined: 04 May 2013
Posts: 3
Location: china

PostPosted: Thu Jun 20, 2013 4:30 pm    Post subject: Reply with quote

sniffer仅能看出 时延扩电,看到的仅是结果呀
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum