Mercurial > hg > nginx
comparison src/os/unix/ngx_files.h @ 7670:ccb5ff87ab3e
Cache: introduced min_free cache clearing.
Clearing cache based on free space left on a file system is
expected to allow better disk utilization in some cases, notably
when disk space might be also used for something other than nginx
cache (including nginx own temporary files) and while loading
cache (when cache size might be inaccurate for a while, effectively
disabling max_size cache clearing).
Based on a patch by Adam Bambuch.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 22 Jun 2020 18:03:00 +0300 |
parents | 52b34c3f89b4 |
children |
comparison
equal
deleted
inserted
replaced
7669:52b34c3f89b4 | 7670:ccb5ff87ab3e |
---|---|
347 #define ngx_directio_on_n "ngx_directio_on_n" | 347 #define ngx_directio_on_n "ngx_directio_on_n" |
348 | 348 |
349 #endif | 349 #endif |
350 | 350 |
351 size_t ngx_fs_bsize(u_char *name); | 351 size_t ngx_fs_bsize(u_char *name); |
352 off_t ngx_fs_available(u_char *name); | |
352 | 353 |
353 | 354 |
354 #if (NGX_HAVE_OPENAT) | 355 #if (NGX_HAVE_OPENAT) |
355 | 356 |
356 #define ngx_openat_file(fd, name, mode, create, access) \ | 357 #define ngx_openat_file(fd, name, mode, create, access) \ |