我正在运行一个应用程序,它将在memcache中加载大约6000万个条目。我在一个桶里加了两台服务器。在加载了大约65%的数据后,我看到这两台服务器上的130万个项目被逐出。这些都是当时的统计数据。
服务器上的 1
STAT bytes_written 619117542
STAT limit_maxbytes 3145728000
服务器上的 2
STAT bytes_written 619118863
STAT limit_maxbytes 3145728000
这是free -m在那个时间点的输出。
服务器上的 1
total used
我的c++程序不能创造比8 threads更多的东西。它返回错误代码EAGAIN(11)。因为缺乏可用的资源。在发布这个问题之前,我在谷歌上搜索了这个问题的解决方案,但没能从中得到多少信息。以下是我为我的程序和unix系统找到的详细信息。
我的线程创建函数是:-
thread_initialise(File *CFG_FILE)
{
int total_pthreads; //reads number of threads I want for the program from configuration file.
int rc =0 ;
fo