亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 3403 | 回復(fù): 0
打印 上一主題 下一主題

[proxy] squid最多支持cache多少個object? [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2008-10-07 10:12 |只看該作者 |倒序?yàn)g覽
有沒有人研究過這個問題?目前我cache3000多萬個object,出現(xiàn)squid進(jìn)程自動重啟了

具體的錯誤是

  1. FATAL: xcalloc: Unable to allocate 1 blocks of 1048640 bytes!

  2. Squid Cache (Version 2.6.STABLE20): Terminated abnormally.
  3. CPU Usage: 49892.603 seconds = 43028.331 user + 6864.272 sys
  4. Maximum Resident Size: 0 KB
  5. Page faults with physical i/o: 24
  6. Memory usage for squid via mallinfo():
  7.         total space in arena:  -130412 KB
  8.         Ordinary blocks:       -131780 KB    833 blks
  9.         Small blocks:               0 KB      0 blks
  10.         Holding blocks:        106564 KB    124 blks
  11.         Free Small blocks:          0 KB
  12.         Free Ordinary blocks:    1367 KB
  13.         Total in use:          -25216 KB 106%
  14.         Total free:              1367 KB -5%
  15. 2008/09/25 20:46:55| storeDirWriteCleanLogs: Starting...
  16. 2008/09/25 20:46:55| WARNING: Closing open FD   71
  17. 2008/09/25 20:46:55| commSetEvents: epoll_ctl(EPOLL_CTL_DEL): failed on fd=71: (1) Operation not permitted
  18. 2008/09/25 20:46:55| WARNING: Closing open FD   72
  19. 2008/09/25 20:46:55| commSetEvents: epoll_ctl(EPOLL_CTL_DEL): failed on fd=72: (1) Operation not permitted
  20. 2008/09/25 20:46:57|   Finished.  Wrote 0 entries.
  21. 2008/09/25 20:46:57|   Took 2.3 seconds (   0.0 entries/sec).
  22. 2008/09/25 20:47:01| Starting Squid Cache version 2.6.STABLE20 for x86_64-unknown-linux-gnu...
復(fù)制代碼



我的存儲方式是COSS

查了squid的FAQ,好像并不能解決我的問題

http://man.chinaunix.net/newsoft/squid/Squid_FAQ/FAQ-8.html#ss8.7 雖然有xmalloc: Unable to allocate的解釋

Messages like "FATAL: xcalloc: Unable to allocate 4096 blocks of 1 bytes!" appear when Squid can't allocate more memory, and on most operating systems (inclusive BSD) there are only two possible reasons:

The machine is out of swap
The process' maximum data segment size has been reached



附上我的內(nèi)存信息
  1. # free
  2.              total       used       free     shared    buffers     cached
  3. Mem:       8161516    8119484      42032          0      82800    3760492
  4. -/+ buffers/cache:    4276192    3885324
  5. Swap:      2096472        208    2096264
復(fù)制代碼


附上一些squid的相關(guān)配置信息:
  1. cache_mem 512 MB
  2. cache_dir coss /cache/coss1 8000 membufs=100 max-size=128000
  3. .........................................................
  4. cache_dir coss /cache/coss29 8000 membufs=100 max-size=128000
  5. cache_dir coss /cache/coss30 8000 membufs=100 max-size=128000
  6. store_avg_object_size 25 KB
  7. store_objects_per_bucket 500
  8. memory_pools off
復(fù)制代碼

[ 本帖最后由 killua 于 2008-10-7 10:14 編輯 ]
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP