Re: [RFC PATCH] Fix aio performance regression for database caused by THP

2013-08-16 Thread Khalid Aziz
On 08/16/2013 03:04 AM, Kirill A. Shutemov wrote: On Thu, Aug 15, 2013 at 12:13:09PM -0600, Khalid Aziz wrote: - if (likely(page != page_head && get_page_unless_zero(page_head))) { + /* +* If this is a hugetlbfs page, it can not be split under +* us. Simply increment

Re: [RFC PATCH] Fix aio performance regression for database caused by THP

2013-08-16 Thread Kirill A. Shutemov
On Thu, Aug 15, 2013 at 12:13:09PM -0600, Khalid Aziz wrote: > I am working with a tool that simulates oracle database I/O workload. > This tool (orion to be specific - > ) > allocates hugetlbfs pages using shmget() with

Re: [RFC PATCH] Fix aio performance regression for database caused by THP

2013-08-15 Thread Greg KH
On Thu, Aug 15, 2013 at 02:16:16PM -0700, Andrew Morton wrote: > I tagged this for a -stable backport. To allow time for review and > testing I'll plan to merge the patch into 3.12-rc1, so it should > materialize in 3.11.x (and hopefully earlier) stable kernels after that. > > To facilitate backp

Re: [RFC PATCH] Fix aio performance regression for database caused by THP

2013-08-15 Thread Andrew Morton
On Thu, 15 Aug 2013 12:13:09 -0600 Khalid Aziz wrote: > I am working with a tool that simulates oracle database I/O workload. > This tool (orion to be specific - > ) > allocates hugetlbfs pages using shmget() with SHM_H

Re: [RFC PATCH] Fix aio performance regression for database caused by THP

2013-08-15 Thread Khalid Aziz
On Thu, 2013-08-15 at 12:34 -0700, Andi Kleen wrote: > Khalid Aziz writes: > > > I am working with a tool that simulates oracle database I/O workload. > > This tool (orion to be specific - > > ) > > allocates hugetlbfs p

Re: [RFC PATCH] Fix aio performance regression for database caused by THP

2013-08-15 Thread Andi Kleen
Khalid Aziz writes: > I am working with a tool that simulates oracle database I/O workload. > This tool (orion to be specific - > ) > allocates hugetlbfs pages using shmget() with SHM_HUGETLB flag. Is this tool availab

[RFC PATCH] Fix aio performance regression for database caused by THP

2013-08-15 Thread Khalid Aziz
I am working with a tool that simulates oracle database I/O workload. This tool (orion to be specific - ) allocates hugetlbfs pages using shmget() with SHM_HUGETLB flag. It then does aio into these pages from flash disks