[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-hackers
Subject:    Re: How to tune the number of pages that is brought into the memory when a page fault occurs .
From:       Konstantin Belousov <kostikbel () gmail ! com>
Date:       2020-10-16 10:15:48
Message-ID: 20201016101548.GT2643 () kib ! kiev ! ua
[Download RAW message or body]

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.
_______________________________________________
freebsd-hackers@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic