Re: [go-nuts] Re: 『Q』How to make hugepagesize work with Go?

2017-09-06 Thread Pradeep Singh
On Wed, Sep 6, 2017 at 2:58 AM, Jesper Louis Andersen < jesper.louis.ander...@gmail.com> wrote: > It is correct that you get superpages/hugepages automatically if they are > enabled. But your software must also allocate pages in a way which lets the > operating system carve out a huge page

Re: [go-nuts] Re: 『Q』How to make hugepagesize work with Go?

2017-09-06 Thread Jesper Louis Andersen
It is correct that you get superpages/hugepages automatically if they are enabled. But your software must also allocate pages in a way which lets the operating system carve out a huge page through a mmap() call (or similar). If the hugepage is 2 megabytes and your garbage collector allocates in

[go-nuts] Re: 『Q』How to make hugepagesize work with Go?

2017-09-05 Thread Pradeep Singh
What is the issue you are facing? You do not need to do anything special to enable Hugepages for Go. Huge page size is a kernel property usually set at Kernel compilation time or set by your Linux Distribution. Go does not care about what the underlying page size is, the page size is