From Apple Inc: Thanks to Jobs, we have jobs. From Other company: Because of Jobs, we have no jobs. From MS: Now we have no jobs (Jobs), but still have bills (Bill).
flags = 1; setsockopt(_fd, /* socket affected */ IPPROTO_TCP, /* set option at TCP level */ TCP_NODELAY, /* name of option */ (char *)&flags, /* the cast is historical cruft */ sizeof(int)); /* length of option value */
写,
【在 g****u 的大作中提到】 : 我的结果出来了。两台core i7 2600K主机1GBE直连。客户端用8个线程,4个读4个写, : 能做到6.4M/s。 : latency.mean: 1.11338 ms : latency.std: 0.866352 ms : latency.min: 0.073 ms : latency.max: 104.414 ms : 我有个问题:我把多个请求在一个send里面发出去,发现并不能提高吞吐量。 : 是不是send本身就已经做了buffer? 我怎么要求send不要buffer? : 问题2: 1us 那个怎么测?