Re: newly add MAP_SYNC flag to mmap

2018-07-16 Thread David Frank
Right.  That makes sense.  On Monday, July 16, 2018, 7:27:18 PM PDT, valdis.kletni...@vt.edu wrote: On Tue, 17 Jul 2018 02:15:17 -, David Frank said: > inking. I'm checking out if the flag does what is is said to do-- I don't > have > to call msync function, which would boost

Re: newly add MAP_SYNC flag to mmap

2018-07-16 Thread valdis . kletnieks
On Tue, 17 Jul 2018 02:15:17 -, David Frank said: > inking. I'm checking out if the flag does what is is said to do-- I don't > have > to call msync function, which would boost performance. Note that this can actually *kill* performance, because this means that the kernel has to flush to

Re: newly add MAP_SYNC flag to mmap

2018-07-16 Thread Alex Arvelaez
16.07.2018 10:15 PM David Frank napisał(a): > > Thanks Valdis. > > Yes, I got the kernel and header files installed. > > But there seems to be a lot of mman.h. I found one in > /usr/include/asm-generic that defined MAP_SYNC, and I included it also, now I > got passed compile and linking. I

Re: newly add MAP_SYNC flag to mmap

2018-07-16 Thread David Frank
Thanks Valdis. Yes, I got the kernel and header files installed. But there seems to be a lot of mman.h. I found one in /usr/include/asm-generic that defined MAP_SYNC, and I included it also, now I got passed compile and linking. I'm checking out if the flag does what is is said to do-- I don't

Re: newly add MAP_SYNC flag to mmap

2018-07-16 Thread valdis . kletnieks
On Tue, 17 Jul 2018 00:57:31 -, David Frank said: > I installed LTS 18.04 with headers.  I'm trying to use the new flag MAP_SYNC > with mmap call, but it complained MAP_SYNC undefined.What #define do I need to > enable this? You need more than a #define. You need a 4.15 kernel and matching

newly add MAP_SYNC flag to mmap

2018-07-16 Thread David Frank
Hi, I installed LTS 18.04 with headers.  I'm trying to use the new flag MAP_SYNC with mmap call, but it complained MAP_SYNC undefined.What #define do I need to enable this? Thanks, David ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org