public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: linux+glibc memory allocator, poor performance
@ 2008-03-12 20:09 J.C. Pizarro
  2008-03-12 21:12 ` Al Viro
  2008-03-12 21:22 ` Rik van Riel
  0 siblings, 2 replies; 23+ messages in thread
From: J.C. Pizarro @ 2008-03-12 20:09 UTC (permalink / raw)
  To: LKML, Linus Torvalds

On Wed, 12 Mar 2008 19:14:06 +0100, Xose Vazquez Perez wrote:
> hi,
>
> More tests from FreeBSD people <http://people.freebsd.org/~kris/scaling/smp.html>
>
> Poor performance with 2.6.24 linux kernel and glibc 2.7 provided by Fedora 8:
>
> *Memory allocation performance on FreeBSD and Linux with ebizzy (Mar 2008)*
> <http://people.freebsd.org/~kris/scaling/ebizzy.html>
>
> -thanks-
>
> regards,
> --
> so much to do, so little time.

Assume a SMP system that has 8 CPUs. The main problem of requesting
pages is the BKL (Big Kernel Lock) in this SMP system used for mutual
exclusion of the shared resource (the memory).

To solve this major problem, i propose you freely to allocate 8 local caches
of (e.g.) 2 MiB each CPU (total 2MiB x 8 CPUs = 16 MiB) acting as
8 producer buffers for globally many consumer tasks (e.g. >= 20).

When the some producer buffer is empty then it does unfrequently BKL to
allocate another 2 MiB more from the shared resource (the memory).

In the reverse, it's simple, return back the unused pages to the local buffer
of the producer, and when this full then to do BKL too to unallocate its half
to the shared resource (the memory).

   Sincerely, J.C.Pizarro

^ permalink raw reply	[flat|nested] 23+ messages in thread
* linux+glibc memory allocator, poor performance
@ 2008-03-12 18:14 Xose Vazquez Perez
  2008-03-17 18:36 ` Xose Vazquez Perez
  0 siblings, 1 reply; 23+ messages in thread
From: Xose Vazquez Perez @ 2008-03-12 18:14 UTC (permalink / raw)
  To: npiggin, linux-kernel

hi,

More tests from FreeBSD people <http://people.freebsd.org/~kris/scaling/smp.html>

Poor performance with 2.6.24 linux kernel and glibc 2.7 provided by Fedora 8:

*Memory allocation performance on FreeBSD and Linux with ebizzy (Mar 2008)*
<http://people.freebsd.org/~kris/scaling/ebizzy.html>


-thanks-

regards,
-- 
so much to do, so little time.


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2008-03-17 18:36 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-12 20:09 linux+glibc memory allocator, poor performance J.C. Pizarro
2008-03-12 21:12 ` Al Viro
2008-03-13  5:57   ` David Newall
2008-03-13  6:12     ` Mike Galbraith
2008-03-13  6:22       ` David Newall
2008-03-13  7:38         ` Christoph Hellwig
2008-03-13 11:02           ` David Newall
2008-03-13  9:10         ` Pekka Enberg
2008-03-13 11:04           ` David Newall
2008-03-13 12:10           ` Alan Cox
2008-03-13 12:48             ` Pekka Enberg
2008-03-13 13:55               ` J.C. Pizarro
2008-03-13 19:40               ` David Newall
2008-03-13 20:05                 ` Pekka Enberg
2008-03-13 22:50                 ` Al Viro
2008-03-14 12:11                   ` Stephen Clark
2008-03-14  6:05               ` Willy Tarreau
2008-03-13 10:50     ` David Newall
2008-03-13 12:23   ` J.C. Pizarro
2008-03-12 21:22 ` Rik van Riel
2008-03-12 21:32   ` Al Viro
  -- strict thread matches above, loose matches on Subject: below --
2008-03-12 18:14 Xose Vazquez Perez
2008-03-17 18:36 ` Xose Vazquez Perez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox