3.3 pretuning your kernel
at this point, you might be tempted to get the precompiled binaries to avoid the hassle of building a new kernel.[1] unfortunately, you need to make a new kernel, regardless. squid and the kernel exchange information through data structures that must not exceed the set file-descriptor limits. squid checks these limits at runtime and uses the safest (smallest) value. thus, even if a precompiled binary has higher file descriptors than the kernel, the kernel value takes precedence. 【相关文章:Catalyst 2950密码恢复】 squid requires a fair amount of kernel resources under moderate and high loads. in particular, you may need to configure your system with a higher-than-normal number of file descriptors and mbuf clusters. the file-descriptor limit can be especially annoying. youd be better off to increase the limit before compiling squid. 【扩展阅读:全部是视频教学!】 to change some settings, you must build and install a new kernel. this procedure varies among different operating systems. consult unix system administration handbook (prentice hall) or your operating-system documentation if necessary. if youre using linux, you probably dont need to recompile your kernel. 【扩展信息:Linux下C语言编程--基础知识 (转】 [1] not all operating systems require building a new kernel. some may be tunable at runtime. 3.3.1 file descriptors... 下一页