摘要:
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 阅读全文
摘要:
SigPipe:在linux下写socket的程序的时候,如果尝试send到一个disconnected socket上,就会让底层抛出一个SIGPIPE信号。这个信号的缺省处理方法是退出进程,大多数时候这都不是我们期望的。因此我们需要重载这个信号的处理方法。调用以下代码,即可安全的屏蔽SIGPIPE:static intdisableSIGPIPE(void){ struct sigaction... 阅读全文
摘要:
http://www.parallellabs.com/2010/01/31/pthreads-programming-spin-lock-vs-mutex-performance-analysis/POSIX threads(简称Pthreads)是在多核平台上进行并行编程的一套常用的API。线程同步(Thread Synchronization)是并行编程中非常重要的通讯手段,其中最典型的应... 阅读全文
摘要:
On Mac OS X and Windows there are builtin CompareAndSwap functions you should be using anyway (InterlockedCompareExchange() and OSAtomicCompareAndSwapPtrBarrier() respectively). Thus will work rega... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
http://www.cs.rochester.edu/research/synchronization/ 阅读全文
摘要:
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. ... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文