|
Lines 50-70
Link Here
|
| 50 |
system call |
50 |
system call |
| 51 |
allows a process that has knowledge of its memory behavior |
51 |
allows a process that has knowledge of its memory behavior |
| 52 |
to describe it to the system. |
52 |
to describe it to the system. |
| 53 |
The known behaviors are given in |
|
|
| 54 |
.Aq Pa sys/mman.h : |
| 55 |
.Bd -literal |
| 56 |
#define MADV_NORMAL 0 /* no further special treatment */ |
| 57 |
#define MADV_RANDOM 1 /* expect random page references */ |
| 58 |
#define MADV_SEQUENTIAL 2 /* expect sequential references */ |
| 59 |
#define MADV_WILLNEED 3 /* will need these pages */ |
| 60 |
#define MADV_DONTNEED 4 /* don't need these pages */ |
| 61 |
#define MADV_FREE 5 /* data is now unimportant */ |
| 62 |
#define MADV_NOSYNC 6 /* no explicit commit to physical backing store */ |
| 63 |
#define MADV_AUTOSYNC 7 /* default commit method to physical backing store */ |
| 64 |
#define MADV_NOCORE 8 /* do not include these pages in a core file */ |
| 65 |
#define MADV_CORE 9 /* revert to including pages in a core file */ |
| 66 |
.Ed |
| 67 |
.Pp |
53 |
.Pp |
|
|
54 |
The known behaviours are: |
| 68 |
.Bl -tag -width MADV_SEQUENTIAL |
55 |
.Bl -tag -width MADV_SEQUENTIAL |
| 69 |
.It Dv MADV_NORMAL |
56 |
.It Dv MADV_NORMAL |
| 70 |
Tells the system to revert to the default paging |
57 |
Tells the system to revert to the default paging |