LINUX.ORG.RU

Сообщения lekverk

 

оптимизация работы squid

Форум — Admin

Здравствуйте! Имеется squid 3.1.10 в прозрачном режиме под средней нагрузкой, необходимо оптимизировать время отклика, можно даже ценой byte hit ratio.

вот страничка статистики:

Connection information for squid:
	Number of clients accessing cache:	0
	Number of HTTP requests received:	54838873
	Number of ICP messages received:	0
	Number of ICP messages sent:	0
	Number of queued ICP replies:	0
	Number of HTCP messages received:	0
	Number of HTCP messages sent:	0
	Request failure ratio:	 0.00
	Average HTTP requests per minute since start:	3812.6
	Average ICP messages per minute since start:	0.0
	Select loop called: 163823255 times, 5.268 ms avg
Cache information for squid:
	Hits as % of all requests:	5min: 35.4%, 60min: 30.6%
	Hits as % of bytes sent:	5min: 13.1%, 60min: 13.6%
	Memory hits as % of hit requests:	5min: 10.8%, 60min: 12.5%
	Disk hits as % of hit requests:	5min: 56.6%, 60min: 56.3%
	Storage Swap size:	205992044 KB
	Storage Swap capacity:	83.8% used, 16.2% free
	Storage Mem size:	520860 KB
	Storage Mem capacity:	99.9% used,  0.1% free
	Mean Object Size:	24.07 KB
	Requests given to unlinkd:	0
Median Service Times (seconds)  5 min    60 min:
	HTTP Requests (All):   0.10857  0.12106
	Cache Misses:          0.16775  0.16775
	Cache Hits:            0.00865  0.00767
	Near Hits:             0.05633  0.15888
	Not-Modified Replies:  0.00000  0.00000
	DNS Lookups:           0.13638  0.14261
	ICP Queries:           0.00000  0.00000
Resource usage for squid:
	UP Time:	863019.369 seconds
	CPU Time:	102723.939 seconds
	CPU Usage:	11.90%
	CPU Usage, 5 minute avg:	16.16%
	CPU Usage, 60 minute avg:	16.62%
	Process Data Segment Size via sbrk(): 1748868 KB
	Maximum Resident Size: -1134320 KB
	Page faults with physical i/o: 12
Memory usage for squid via mallinfo():
	Total space in arena:  1749000 KB
	Ordinary blocks:       1697358 KB 2731596 blks
	Small blocks:               0 KB      0 blks
	Holding blocks:        105080 KB     19 blks
	Free Small blocks:          0 KB
	Free Ordinary blocks:   51641 KB
	Total in use:          1802438 KB 97%
	Total free:             51641 KB 3%
	Total size:            1854080 KB
Memory accounted for:
	Total accounted:       1261297 KB  68%
	memPool accounted:     1261297 KB  68%
	memPool unaccounted:   592782 KB  32%
	memPoolAlloc calls: 13629802631
	memPoolFree calls:  13767274231
File descriptor usage for squid:
	Maximum number of file descriptors:   131072
	Largest file desc currently in use:   4521
	Number of file desc currently in use: 2585
	Files queued for open:                   0
	Available number of file descriptors: 128487
	Reserved number of file descriptors:   100
	Store Disk files open:                   4
Internal Data Structures:
	8624896 StoreEntries
	 98650 StoreEntries with MemObjects
	 98205 Hot Object Cache Items
	8556949 on-disk objects

В качестве кэширующего DNS стоит bind 9, использует root-servers. Какие оптимизации на уровне tcp-sockets/conntrack/итд можно сделать? Сейчас все стоит на обрезаной gentoo. Затыков по железу нет - Core i7 950, 6гб памяти, сетевухи серверные intel, винты 2x146gb SAS, reiserfs notail/noatime. Т.е. нужно выжать из железа все, что только можно. Гугл прошерстил вдоль и поперек, но сетевой аспект сквида в инструкциях почти не затрагивается

Сейчас хочу покрутить

/proc/sys/net/ipv4/tcp_tw_recycle
/proc/sys/net/ipv4/tcp_tw_reuse
/proc/sys/net/ipv4/tcp_max_syn_backlog

Но не знаю, стоит ли?

lekverk
()

RSS подписка на новые темы