Senfile + Threads + mincore in Linux?

Igor M Podlesny for.poige+nginx at gmail.com
Mon Jun 29 16:09:31 UTC 2015


2015-06-29 20:40 GMT+07:00 Валентин Бартенев <vbart at nginx.com>:
>
> У вас же не один файл, так?  Пулы потоков и нужны там, где файлов много больше,
> чем оперативной памяти.
>
> Нужно будет mmap() делать минимум на каждый запрос, тысячи mmap()/munmap()-ов в
> секунду - это большая нагрузка на подсистему памяти.

 Ну не, я не такой шаблон себе представлял, в связи с этим, а, скорее,
что-то вроде: "...
A minute after the start the special “cache loader” process is
activated. It loads information about previously cached data stored on
file system into a cache zone. The loading is done in iterations.
During one iteration no more than loader_files items are loaded (by
default, 100). Besides, the duration of one iteration is limited by
the loader_threshold parameter (by default, 200 milliseconds). Between
iterations, a pause configured by the loader_sleep parameter (by
default, 50 milliseconds) is made.
..." -- http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_path

--


Подробная информация о списке рассылки nginx-ru