Re: x86: vmalloc and THP

2014-08-12 Thread Kirill A. Shutemov
On Tue, Aug 12, 2014 at 07:20:52PM +0300, Oren Twaig wrote: > >What's the point to use vmalloc() in this case? > I've noticed that some lock/s are using linear addresses which are > located at 0xc901922b4500 and from what I understand > from mm.txt (kernel 3.0.101): > *c900 - e8

Re: x86: vmalloc and THP

2014-08-12 Thread Oren Twaig
Hi Kirill, I saw the thread has developed nicely :), still - wanted to answer your question below. On 8/12/2014 9:07 AM, Kirill A. Shutemov wrote: On Tue, Aug 12, 2014 at 08:00:54AM +0300, Oren Twaig wrote: plain/text, please. Yes - noticed the html, sent again in plain text. If not, is

Re: x86: vmalloc and THP

2014-08-12 Thread Kirill A. Shutemov
On Tue, Aug 12, 2014 at 05:28:52AM -0700, Eric Dumazet wrote: > On Tue, 2014-08-12 at 09:07 +0300, Kirill A. Shutemov wrote: > > On Tue, Aug 12, 2014 at 08:00:54AM +0300, Oren Twaig wrote: > > >If not, is there any fast way to change this behavior ? Maybe by > > >changing the granularity/alignment

Re: x86: vmalloc and THP

2014-08-12 Thread Eric Dumazet
On Tue, 2014-08-12 at 09:07 +0300, Kirill A. Shutemov wrote: > On Tue, Aug 12, 2014 at 08:00:54AM +0300, Oren Twaig wrote: > >Does memory allocated using vmalloc() will be mapped using huge > >pages either directly or later by THP ? > > No. It's neither aligned properly, nor physically contiguou

Re: x86: vmalloc and THP

2014-08-11 Thread Kirill A. Shutemov
On Tue, Aug 12, 2014 at 08:00:54AM +0300, Oren Twaig wrote: > plain/text, please. >Hello, > >Does memory allocated using vmalloc() will be mapped using huge >pages either directly or later by THP ? No. It's neither aligned properly, nor physically contiguous. >If not, is there any fast way to

x86: vmalloc and THP

2014-08-11 Thread Oren Twaig
Hello, Does memory allocated using vmalloc() will be mapped using huge pages either directly or later by THP ? If not, is there any fast way to change this behavior ? Maybe by changing the granularity/alignment of such allocations to allow such mapping ? Thanks, Oren Twaig. --- This email