Re: [PATCH] lazy freeing of memory through MADV_FREE

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rik van Riel
Date: Monday, April 23, 2007 - 2:20 am

Use TLB batching for MADV_FREE.  Adds another 10-15% extra performance
to the MySQL sysbench results on my quad core system.

Signed-off-by: Rik van Riel <riel@redhat.com>
---
Rik van Riel wrote:


With the attached patch to make MADV_FREE use tlb batching, not
only do we gain an additional 10-15% performance but Nick's
mmap_sem patch also shows the performance increase that we
expected to see.

It looks like the tlb flushes (and IPIs) from zap_pte_range()
could have been the problem.  They're gone now.

The second column from the right has Nick's patch and my own
two patches.  Performance with 16 threads is almost triple what
it used to be...

vanilla   glibc  glibc      glibc        glibc      glibc      glibc
                  madv_free  madv_free               madv_free 
madv_free
                             mmap_sem     mmap_sem   mmap_sem
                                                     tlb batch  tlb_batch
threads

  1     610     609     596         545         534     547     537
  2    1032    1136    1196        1200        1180    1293    1194
  4    1070    1128    2014        2024        2027    2248    2040
  8    1000    1088    1665        2087        2089    2314    1869
  16    779    1073    1310        1999        2012    2214    1557



This is for another day. :)

First some ebizzy runs...

-- 
Politics is the struggle between those who want to make their country
the best in the world, and those who believe it already is.  Each group
calls the other unpatriotic.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Tue Apr 17, 12:15 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Andrew Morton, (Fri Apr 20, 1:57 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE 2/2, Andrew Morton, (Fri Apr 20, 2:03 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE 2/2, Ulrich Drepper, (Fri Apr 20, 2:24 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Fri Apr 20, 2:38 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Andrew Morton, (Fri Apr 20, 3:06 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Fri Apr 20, 4:52 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Eric Dumazet, (Fri Apr 20, 5:48 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Fri Apr 20, 8:58 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Jakub Jelinek, (Sat Apr 21, 12:12 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Hugh Dickins, (Sat Apr 21, 12:24 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE 2/2, Hugh Dickins, (Sat Apr 21, 12:37 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE 2/2, Ulrich Drepper, (Sat Apr 21, 9:32 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Sat Apr 21, 11:06 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Nick Piggin, (Sat Apr 21, 7:36 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Nick Piggin, (Sat Apr 21, 7:50 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Sat Apr 21, 11:31 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Andrew Morton, (Sun Apr 22, 1:18 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Christoph Hellwig, (Sun Apr 22, 2:16 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Ulrich Drepper, (Sun Apr 22, 9:55 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Nick Piggin, (Sun Apr 22, 5:16 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Sun Apr 22, 8:53 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Nick Piggin, (Sun Apr 22, 8:58 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Sun Apr 22, 8:59 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Sun Apr 22, 9:28 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Nick Piggin, (Sun Apr 22, 9:36 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Mon Apr 23, 2:20 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Nick Piggin, (Mon Apr 23, 3:07 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Mon Apr 23, 3:12 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Nick Piggin, (Mon Apr 23, 3:21 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Mon Apr 23, 3:31 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Nick Piggin, (Mon Apr 23, 3:35 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Jakub Jelinek, (Mon Apr 23, 3:44 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Mon Apr 23, 3:44 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Mon Apr 23, 4:45 am)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Nick Piggin, (Mon Apr 23, 6:15 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Mon Apr 23, 6:58 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Nick Piggin, (Mon Apr 23, 7:16 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Mon Apr 23, 7:53 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Andrew Morton, (Mon Apr 23, 8:08 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Paul Mackerras, (Mon Apr 23, 9:42 pm)
Re: [PATCH] lazy freeing of memory through MADV_FREE, Rik van Riel, (Mon Apr 23, 10:13 pm)