Date: Fri, 16 Oct 2020 13:15:48 +0300 From: Konstantin Belousov <kostikbel@gmail.com> To: SHAMANTHA KRISHNA K G <shamanthkrishna23@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: How to tune the number of pages that is brought into the memory when a page fault occurs . Message-ID: <20201016101548.GT2643@kib.kiev.ua> In-Reply-To: <CACc2HZkrpXC29SA1-sB==7cbBp8jVVmwys3F4qFMtRc8iNKvEA@mail.gmail.com> References: <CACc2HZkrpXC29SA1-sB==7cbBp8jVVmwys3F4qFMtRc8iNKvEA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Oct 16, 2020 at 01:37:56PM +0530, SHAMANTHA KRISHNA K G wrote: > Hello All, > Is there any way of changing the number of pages that Is brought > into the memory when a page fault occurs? Look at madvise(2) and posix_madvise(2). It does not give the direct knob to change the number, but it allows to set a policy affecting this decision. In particular, it allows to disable prefeching at all with MADV_RANDOM. The mmap(2) syscall also provides MAP_PREFAULT_READ, read about it in the man page.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20201016101548.GT2643>