Re: [PATCH 1/3] mm:hugetlb: Define system call hugetlb size encodings in single file

2017-08-01 Thread Michal Hocko
On Mon 31-07-17 11:56:24, Mike Kravetz wrote: > If hugetlb pages are requested in mmap or shmget system calls, a huge > page size other than default can be requested. This is accomplished by > encoding the log2 of the huge page size in the upper bits of the flag > argument. asm-generic and arch

Re: [PATCH 1/3] mm:hugetlb: Define system call hugetlb size encodings in single file

2017-08-01 Thread Michal Hocko
On Mon 31-07-17 11:56:24, Mike Kravetz wrote: > If hugetlb pages are requested in mmap or shmget system calls, a huge > page size other than default can be requested. This is accomplished by > encoding the log2 of the huge page size in the upper bits of the flag > argument. asm-generic and arch

[PATCH 1/3] mm:hugetlb: Define system call hugetlb size encodings in single file

2017-07-31 Thread Mike Kravetz
If hugetlb pages are requested in mmap or shmget system calls, a huge page size other than default can be requested. This is accomplished by encoding the log2 of the huge page size in the upper bits of the flag argument. asm-generic and arch specific headers all define the same values for these

[PATCH 1/3] mm:hugetlb: Define system call hugetlb size encodings in single file

2017-07-31 Thread Mike Kravetz
If hugetlb pages are requested in mmap or shmget system calls, a huge page size other than default can be requested. This is accomplished by encoding the log2 of the huge page size in the upper bits of the flag argument. asm-generic and arch specific headers all define the same values for these

Re: [RFC PATCH 1/3] mm:hugetlb: Define system call hugetlb size encodings in single file

2017-07-26 Thread Michal Hocko
On Mon 17-07-17 15:27:59, Mike Kravetz wrote: > If hugetlb pages are requested in mmap or shmget system calls, a huge > page size other than default can be requested. This is accomplished by > encoding the log2 of the huge page size in the upper bits of the flag > argument. asm-generic and arch

Re: [RFC PATCH 1/3] mm:hugetlb: Define system call hugetlb size encodings in single file

2017-07-26 Thread Michal Hocko
On Mon 17-07-17 15:27:59, Mike Kravetz wrote: > If hugetlb pages are requested in mmap or shmget system calls, a huge > page size other than default can be requested. This is accomplished by > encoding the log2 of the huge page size in the upper bits of the flag > argument. asm-generic and arch

Re: [RFC PATCH 1/3] mm:hugetlb: Define system call hugetlb size encodings in single file

2017-07-17 Thread Matthew Wilcox
On Mon, Jul 17, 2017 at 03:27:59PM -0700, Mike Kravetz wrote: > +#define HUGETLB_FLAG_ENCODE_512KB(19 << MAP_HUGE_SHIFT > +#define HUGETLB_FLAG_ENCODE_1MB (20 << MAP_HUGE_SHIFT) > +#define HUGETLB_FLAG_ENCODE_2MB (21 << MAP_HUGE_SHIFT) > +#define

Re: [RFC PATCH 1/3] mm:hugetlb: Define system call hugetlb size encodings in single file

2017-07-17 Thread Matthew Wilcox
On Mon, Jul 17, 2017 at 03:27:59PM -0700, Mike Kravetz wrote: > +#define HUGETLB_FLAG_ENCODE_512KB(19 << MAP_HUGE_SHIFT > +#define HUGETLB_FLAG_ENCODE_1MB (20 << MAP_HUGE_SHIFT) > +#define HUGETLB_FLAG_ENCODE_2MB (21 << MAP_HUGE_SHIFT) > +#define

[RFC PATCH 1/3] mm:hugetlb: Define system call hugetlb size encodings in single file

2017-07-17 Thread Mike Kravetz
If hugetlb pages are requested in mmap or shmget system calls, a huge page size other than default can be requested. This is accomplished by encoding the log2 of the huge page size in the upper bits of the flag argument. asm-generic and arch specific headers all define the same values for these

[RFC PATCH 1/3] mm:hugetlb: Define system call hugetlb size encodings in single file

2017-07-17 Thread Mike Kravetz
If hugetlb pages are requested in mmap or shmget system calls, a huge page size other than default can be requested. This is accomplished by encoding the log2 of the huge page size in the upper bits of the flag argument. asm-generic and arch specific headers all define the same values for these