上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: TuningParameter How? MTUSizetomaximumsupportedbynetwork Leaveatdefault Interruptmoderation Disablewith: ethtool -C ethX rx-usecs-irq 0 TCP/IPChecksumOffload Leaveatdefault TCPSegmentationOffload Leaveatdefault TCPLargeReceiveOffload Disableusingsysfs: echo 0 /sys/class/net/ethX/device/lro TCPPro 阅读全文
posted @ 2010-12-10 06:19 史莱姆 阅读(284) 评论(0) 推荐(0) 编辑
摘要: SigPipe:在linux下写socket的程序的时候,如果尝试send到一个disconnected socket上,就会让底层抛出一个SIGPIPE信号。这个信号的缺省处理方法是退出进程,大多数时候这都不是我们期望的。因此我们需要重载这个信号的处理方法。调用以下代码,即可安全的屏蔽SIGPIPE:static intdisableSIGPIPE(void){ struct sigaction... 阅读全文
posted @ 2010-10-27 03:53 史莱姆 阅读(361) 评论(0) 推荐(0) 编辑
摘要: http://www.parallellabs.com/2010/01/31/pthreads-programming-spin-lock-vs-mutex-performance-analysis/POSIX threads(简称Pthreads)是在多核平台上进行并行编程的一套常用的API。线程同步(Thread Synchronization)是并行编程中非常重要的通讯手段,其中最典型的应... 阅读全文
posted @ 2010-10-25 23:25 史莱姆 阅读(651) 评论(0) 推荐(0) 编辑
摘要: On Mac OS X and Windows there are builtin CompareAndSwap functions you should be using anyway (InterlockedCompareExchange() and OSAtomicCompareAndSwapPtrBarrier() respectively). Thus will work rega... 阅读全文
posted @ 2010-10-25 23:09 史莱姆 阅读(266) 评论(0) 推荐(0) 编辑
摘要: SpinLock might be useful when a lock on a shared resource is not going to be held for very long. In such cases, on multi-core computers it can be efficient for the blocked thread to spin for a few cyc... 阅读全文
posted @ 2010-10-21 11:16 史莱姆 阅读(357) 评论(0) 推荐(0) 编辑
摘要: OpenOnload is not really an alternative to TCP, it is a user level implementation of the TCP/IP stack which is able to transfer directly from user space to the NIC. This avoids the multiple memory... 阅读全文
posted @ 2010-10-20 23:13 史莱姆 阅读(2594) 评论(0) 推荐(0) 编辑
摘要: http://www.cs.rochester.edu/research/synchronization/ 阅读全文
posted @ 2010-10-18 23:27 史莱姆 阅读(192) 评论(0) 推荐(0) 编辑
摘要: http://www.cs.rochester.edu/research/synchronization/pseudocode/queues.html/Files/slime/1996_PODC_queues.pdfPseudocode from article of the above name in PODC96 (with two typos corrected), by Maged M. ... 阅读全文
posted @ 2010-10-17 02:40 史莱姆 阅读(569) 评论(0) 推荐(0) 编辑
摘要: Background Indexer Crash Recoveryjava.lang.OutOfMemoryError: Java heap spaceat org.eclipse.jdt.internal.compiler.util.HashtableOfObject.<init>(HashtableOfObject.java:39)at org.eclipse.jdt.intern... 阅读全文
posted @ 2010-10-13 05:19 史莱姆 阅读(890) 评论(0) 推荐(0) 编辑
摘要: Try including "winsock2.h" before "windows.h" in your source code. There's an include guard in "winsock2.h" that prevents "winsock.h" from being pulled in. By default, "windows.h" trys to pull in "wi... 阅读全文
posted @ 2010-10-08 05:26 史莱姆 阅读(257) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 12 下一页