From owner-freebsd-threads@FreeBSD.ORG Mon Oct 29 11:07:16 2007 Return-Path: Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F371D16A474 for ; Mon, 29 Oct 2007 11:07:14 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E72DF13C4AC for ; Mon, 29 Oct 2007 11:07:13 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9TB7DrW090277 for ; Mon, 29 Oct 2007 11:07:13 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l9TB7DWw090273 for freebsd-threads@FreeBSD.org; Mon, 29 Oct 2007 11:07:13 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 29 Oct 2007 11:07:13 GMT Message-Id: <200710291107.l9TB7DWw090273@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-threads@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-threads@FreeBSD.org X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2007 11:07:16 -0000 Current FreeBSD problem reports Critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- s threa/76690 threads fork hang in child for -lc_r 1 problem total. Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/20016 threads pthreads: Cannot set scheduling timer/Cannot set virtu s threa/24472 threads libc_r does not honor SO_SNDTIMEO/SO_RCVTIMEO socket o s threa/24632 threads libc_r delicate deviation from libc in handling SIGCHL s bin/32295 threads pthread dont dequeue signals s threa/34536 threads accept() blocks other threads o kern/38549 threads the procces compiled whith pthread stopped in pthread_ s threa/39922 threads [threads] [patch] Threaded applications executed with s threa/48856 threads Setting SIGCHLD to SIG_IGN still leaves zombies under s threa/49087 threads Signals lost in programs linked with libc_r s kern/64313 threads FreeBSD (OpenBSD) pthread implicit set/unset O_NONBLOC o threa/70975 threads unexpected and unreliable behaviour when using SYSV se o threa/72429 threads threads blocked in stdio (fgets, etc) are not cancella o threa/72953 threads fork() unblocks blocked signals w/o PTHREAD_SCOPE_SYST o threa/75273 threads FBSD 5.3 libpthread (KSE) bug o threa/75374 threads pthread_kill() ignores SA_SIGINFO flag s threa/76694 threads fork cause hang in dup()/close() function in child (-l o threa/79683 threads svctcp_create() fails if multiple threads call at the o threa/80435 threads panic on high loads o threa/83914 threads [libc] popen() doesn't work in static threaded program s threa/84483 threads problems with devel/nspr and -lc_r on 4.x o threa/85160 threads [libthr] [patch] libobjc + libpthread/libthr crash pro o kern/91266 threads [threads] Trying sleep, but thread marked as sleeping s threa/94467 threads send(), sendto() and sendmsg() are not correct in libc s threa/100815 threads FBSD 5.5 broke nanosleep in libc_r o threa/101323 threads fork(2) in threaded programs broken. o threa/103975 threads Implicit loading/unloading of libpthread.so may crash o threa/110636 threads gdb(1): using gdb with multi thread application with l o threa/113666 threads misc/shared-mime-info doesn't install, can't find thre 28 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- s kern/19247 threads uthread_sigaction.c does not do anything wrt SA_NOCLDW s kern/22190 threads A threaded read(2) from a socketpair(2) fd can sometim s threa/30464 threads pthread mutex attributes -- pshared s threa/37676 threads libc_r: msgsnd(), msgrcv(), pread(), pwrite() need wra s threa/40671 threads pthread_cancel doesn't remove thread from condition qu s threa/69020 threads pthreads library leaks _gc_mutex o threa/79887 threads [patch] freopen() isn't thread-safe o threa/80992 threads abort() sometimes not caught by gdb depending on threa o threa/110306 threads apache 2.0 segmentation violation when calling gethost o threa/115211 threads pthread_atfork misbehaves in initial thread o threa/116668 threads can no longer use jdk15 with libthr on -stable SMP 11 problems total. From owner-freebsd-threads@FreeBSD.ORG Wed Oct 31 02:30:44 2007 Return-Path: Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4DB0D16A417 for ; Wed, 31 Oct 2007 02:30:44 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 40D9313C4AC for ; Wed, 31 Oct 2007 02:30:44 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from [127.0.0.1] (root@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9V2Ufcm003528 for ; Wed, 31 Oct 2007 02:30:43 GMT (envelope-from davidxu@freebsd.org) Message-ID: <4727E907.4090308@freebsd.org> Date: Wed, 31 Oct 2007 10:31:35 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20070516 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-threads@FreeBSD.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: PTHREAD_YIELDLOOPS boosts mysql super-smack performance X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2007 02:30:44 -0000 I did a simple mysql super-smack benchmark test on a Intel XEON machine, the CPU has 4 cores: CPU: Intel(R) Xeon(R) CPU 5130 @ 2.00GHz (1997.03-MHz) I have set environment variable LIBPTHREAD_YIELDLOOPS to 30 and start mysql server: setenv LIBPTHREAD_YIELDLOOPS 30 /usr/local/etc/rc.d/mysql-server start and repeat doing #super-smack ./select-key.smack 10 20000 The result is very surprising: # /usr/src/tools/tools/ministat/ministat normal.txt yield_30.txt x normal.txt + yield_30.txt +-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | x x x + | | x xxxx + + ++ | |x x xxxxx x + + + ++ + | |x x xxxxxxx x x + + + ++++++ ++++ +++ ++ +| | |___A___| |________M_A_________| | +-----------------------------------------------------------------------------------------------------------------------------------------------------------+ N Min Max Median Avg Stddev x 30 44790.57 48609.38 45831.065 45910.616 745.54679 + 30 60521.95 73090.6 66008.135 66254.815 1953.4324 Difference at 95.0% confidence 20344.2 +/- 764.241 44.3126% +/- 1.66463% (Student's t, pooled s = 1478.47) it seems over 44% performance is improved. Regards, David Xu From owner-freebsd-threads@FreeBSD.ORG Wed Oct 31 05:14:13 2007 Return-Path: Delivered-To: threads@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 107D016A417 for ; Wed, 31 Oct 2007 05:14:13 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0407E13C481 for ; Wed, 31 Oct 2007 05:14:13 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from [127.0.0.1] (root@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9V5E9fs010318 for ; Wed, 31 Oct 2007 05:14:12 GMT (envelope-from davidxu@freebsd.org) Message-ID: <47280F58.5070507@freebsd.org> Date: Wed, 31 Oct 2007 13:15:04 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20070516 X-Accept-Language: en-us, en MIME-Version: 1.0 To: threads@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: Subject: mysql supersmack select benchmark X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2007 05:14:13 -0000 I did a simple mysql super-smack benchmark test on a Intel XEON machine, the CPU has 4 cores: CPU: Intel(R) Xeon(R) CPU 5130 @ 2.00GHz (1997.03-MHz) I have set environment variable LIBPTHREAD_YIELDLOOPS to 30 and start mysql server: setenv LIBPTHREAD_YIELDLOOPS 30 /usr/local/etc/rc.d/mysql-server start and repeat doing #super-smack ./select-key.smack 10 20000 The result is very surprising: # /usr/src/tools/tools/ministat/ministat normal.txt yield_30.txt x normal.txt + yield_30.txt +-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | x x x + | | x xxxx + + ++ | |x x xxxxx x + + + ++ + | |x x xxxxxxx x x + + + ++++++ ++++ +++ ++ +| | |___A___| |________M_A_________| | +-----------------------------------------------------------------------------------------------------------------------------------------------------------+ N Min Max Median Avg Stddev x 30 44790.57 48609.38 45831.065 45910.616 745.54679 + 30 60521.95 73090.6 66008.135 66254.815 1953.4324 Difference at 95.0% confidence 20344.2 ± 764.241 44.3126% ± 1.66463% (Student's t, pooled s = 1478.47) it seems over 44% performance is improved. Regards, David Xu From owner-freebsd-threads@FreeBSD.ORG Wed Oct 31 07:24:21 2007 Return-Path: Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A7B6916A419 for ; Wed, 31 Oct 2007 07:24:21 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 97FA013C4CB; Wed, 31 Oct 2007 07:24:21 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from [127.0.0.1] (root@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9V7OFWX018639; Wed, 31 Oct 2007 07:24:17 GMT (envelope-from davidxu@freebsd.org) Message-ID: <47282DD6.2010406@freebsd.org> Date: Wed, 31 Oct 2007 15:25:10 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20070516 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Igor Sysoev References: <20071026063822.GA91344@rambler-co.ru> In-Reply-To: <20071026063822.GA91344@rambler-co.ru> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-threads@FreeBSD.org Subject: Re: kqueue based thread pool X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2007 07:24:21 -0000 Igor Sysoev wrote: > The modern threads implementation works fine with program that requires > fair threads scheduling, like Apache and MySQL. > > However, there are programs (like varnish) that use FSM and thread pool. > The threads allow to run on SMP and reduce blocking on disk I/O. > These programs use an acceptor/listener thread and worker pool threads. > In this model it's preferable to have one RUNnable worker thread per CPU and > to start next one only when the current thread blocks. Also, when scheduler > chooses next thread to run it should get the more recently run (cache hot) > thread instead of fair scheduling. It's good to have some idle threads > in pool, those run very seldom when active threads are blocked on I/O, etc. > > Just wonder whether current scheduler is easy extendable to create thread > pool controlled by kqueue: that is the kernel acts as acceptor/listener > thread that wakes up worker threads waiting in kevent() ? > > I have thought your idea for a while, if I understandd correctly, I think you want FIFO scheduling which does not do preemption. The problem in current system is for 1:1 threading, doing realtime scheduling is not safe, kernel is not ready for realtime scheduling, application code can starve other parts of system, this is why SCHED_FIFO and SCHED_RR classes thread can only be created by root. you may try libkse which doing FIFO in userland, just don't use SYSTEM scope thread, it will work. I am not sure kqueue will work with threading, my brain tells me kqueue is not multi-thread safe. ;-) Regards, David Xu From owner-freebsd-threads@FreeBSD.ORG Wed Oct 31 09:10:02 2007 Return-Path: Delivered-To: threads@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D5FD16A41B; Wed, 31 Oct 2007 09:10:02 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3574E13C48D; Wed, 31 Oct 2007 09:10:02 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from [127.0.0.1] (root@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l9V99xCk022962; Wed, 31 Oct 2007 09:10:00 GMT (envelope-from davidxu@freebsd.org) Message-ID: <4728469C.9020607@freebsd.org> Date: Wed, 31 Oct 2007 17:10:52 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20070516 X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Xu References: <47280F58.5070507@freebsd.org> In-Reply-To: <47280F58.5070507@freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: threads@FreeBSD.org Subject: Re: mysql supersmack select benchmark X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2007 09:10:02 -0000 David Xu wrote: > I did a simple mysql super-smack benchmark test on a Intel XEON machine, Please forget this resent mail. Thanks. David Xu From owner-freebsd-threads@FreeBSD.ORG Wed Oct 31 09:45:15 2007 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C75CF16A469 for ; Wed, 31 Oct 2007 09:45:15 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by mx1.freebsd.org (Postfix) with ESMTP id 43C6F13C4A8 for ; Wed, 31 Oct 2007 09:45:14 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so68361nfb for ; Wed, 31 Oct 2007 02:44:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=xlSN08ARxGEr+BpR3noxMa1K5foe0rTduf+Fw+RB86Y=; b=OevGHLJx8zdTky4QqlDYQsazlyynfkaPNXyCiAIfswuHdfhSCyC5d8NoluoGzK9FpSHnCfjsLsc7ZWta7gbzeOImPH3X361uwj9epOpZP+J/86x6C8fIAV3eKPO5kGMSzpnxBWGF6ChnitfJXCLkDS3W/InFqG5AJahHcbVghhQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Oz0RfS0mEG7s9agfhooTwP8aUjqbWqn5ume8ZYKxUxLQrwU5ZbFE2h8rCxlJG78voZgd5MkmLZYsI30ytFBNsSRWsSwXrD9FzR/95Y1LjkHXNKCUlgHnCL4nq3KtI4yaCW13hFR0F5ksIZ4dNWIZsHfSgCiEGHRcFw68xv9nAeM= Received: by 10.86.99.9 with SMTP id w9mr6446689fgb.1193822252326; Wed, 31 Oct 2007 02:17:32 -0700 (PDT) Received: by 10.86.2.1 with HTTP; Wed, 31 Oct 2007 02:17:32 -0700 (PDT) Message-ID: <499c70c0710310217k3e55b66en23d32c2f6a613c99@mail.gmail.com> Date: Wed, 31 Oct 2007 12:17:32 +0300 From: "Abdullah Ibn Hamad Al-Marri" To: "David Xu" In-Reply-To: <4727E907.4090308@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4727E907.4090308@freebsd.org> Cc: freebsd-threads@freebsd.org Subject: Re: PTHREAD_YIELDLOOPS boosts mysql super-smack performance X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2007 09:45:15 -0000 On Oct 31, 2007 5:31 AM, David Xu wrote: > I did a simple mysql super-smack benchmark test on a Intel XEON machine, > the CPU has 4 cores: > CPU: Intel(R) Xeon(R) CPU 5130 @ 2.00GHz (1997.03-MHz) > > > I have set environment variable LIBPTHREAD_YIELDLOOPS to 30 and start > mysql server: > > setenv LIBPTHREAD_YIELDLOOPS 30 > /usr/local/etc/rc.d/mysql-server start > > and repeat doing > #super-smack ./select-key.smack 10 20000 > > The result is very surprising: > > # /usr/src/tools/tools/ministat/ministat normal.txt yield_30.txt > > x normal.txt > + yield_30.txt > +-----------------------------------------------------------------------------------------------------------------------------------------------------------+ > | x x x > + > | > | x xxxx > + + ++ > | > |x x xxxxx x > + + + ++ + > | > |x x xxxxxxx x x > + + + ++++++ ++++ +++ ++ > +| > | |___A___| > |________M_A_________| > | > +-----------------------------------------------------------------------------------------------------------------------------------------------------------+ > N Min Max Median Avg Stddev > x 30 44790.57 48609.38 45831.065 45910.616 745.54679 > + 30 60521.95 73090.6 66008.135 66254.815 1953.4324 > Difference at 95.0% confidence > 20344.2 +/- 764.241 > 44.3126% +/- 1.66463% > (Student's t, pooled s = 1478.47) > > it seems over 44% performance is improved. > > > Regards, > David Xu > > _______________________________________________ > freebsd-threads@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-threads > To unsubscribe, send any mail to "freebsd-threads-unsubscribe@freebsd.org" > David thank you! }:) When could you please commit these changes of libthr will hit RELENG_7 so we could benefit of these improvements? -- Regards, -Abdullah Ibn Hamad Al-Marri Arab Portal http://www.WeArab.Net/ From owner-freebsd-threads@FreeBSD.ORG Wed Oct 31 15:05:34 2007 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86A8916A417 for ; Wed, 31 Oct 2007 15:05:34 +0000 (UTC) (envelope-from gofdt-freebsd-threads@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 40F5C13C48E for ; Wed, 31 Oct 2007 15:05:34 +0000 (UTC) (envelope-from gofdt-freebsd-threads@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1InD9T-0004k1-9r for freebsd-threads@freebsd.org; Wed, 31 Oct 2007 12:58:31 +0000 Received: from 161.53.72.68 ([161.53.72.68]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 31 Oct 2007 12:58:31 +0000 Received: from ivoras by 161.53.72.68 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 31 Oct 2007 12:58:31 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-threads@freebsd.org From: Ivan Voras Date: Wed, 31 Oct 2007 14:00:39 +0100 Lines: 11 Message-ID: References: <4727E907.4090308@freebsd.org> <499c70c0710310217k3e55b66en23d32c2f6a613c99@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 161.53.72.68 User-Agent: Thunderbird 2.0.0.6 (X11/20070801) In-Reply-To: <499c70c0710310217k3e55b66en23d32c2f6a613c99@mail.gmail.com> Sender: news Subject: Re: PTHREAD_YIELDLOOPS boosts mysql super-smack performance X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2007 15:05:34 -0000 Abdullah Ibn Hamad Al-Marri wrote: > On Oct 31, 2007 5:31 AM, David Xu wrote: >> it seems over 44% performance is improved. > When could you please commit these changes of libthr will hit RELENG_7 > so we could benefit of these improvements? I agree this would be very nice to have in 7.0, especially since it's off by default. We can add a tagline to the release to the tune of "MySQL gets smacked!" From owner-freebsd-threads@FreeBSD.ORG Thu Nov 1 01:10:23 2007 Return-Path: Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D56EE16A46B; Thu, 1 Nov 2007 01:10:23 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9593A13C4B5; Thu, 1 Nov 2007 01:10:23 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from [127.0.0.1] (root@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id lA11AKDG068268; Thu, 1 Nov 2007 01:10:21 GMT (envelope-from davidxu@freebsd.org) Message-ID: <472927B2.2090102@freebsd.org> Date: Thu, 01 Nov 2007 09:11:14 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20070516 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ivan Voras References: <4727E907.4090308@freebsd.org> <499c70c0710310217k3e55b66en23d32c2f6a613c99@mail.gmail.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-threads@FreeBSD.org Subject: Re: PTHREAD_YIELDLOOPS boosts mysql super-smack performance X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Nov 2007 01:10:23 -0000 Ivan Voras wrote: > Abdullah Ibn Hamad Al-Marri wrote: > >>On Oct 31, 2007 5:31 AM, David Xu wrote: > > >>>it seems over 44% performance is improved. > > >>When could you please commit these changes of libthr will hit RELENG_7 >>so we could benefit of these improvements? > > > I agree this would be very nice to have in 7.0, especially since it's > off by default. We can add a tagline to the release to the tune of > "MySQL gets smacked!" > I will request a MFC. :-) Regards, From owner-freebsd-threads@FreeBSD.ORG Thu Nov 1 10:21:51 2007 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 575A916A420 for ; Thu, 1 Nov 2007 10:21:51 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by mx1.freebsd.org (Postfix) with ESMTP id EF90713C494 for ; Thu, 1 Nov 2007 10:21:50 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so350807nfb for ; Thu, 01 Nov 2007 03:21:32 -0700 (PDT) Received: by 10.86.66.1 with SMTP id o1mr309681fga.1193906731923; Thu, 01 Nov 2007 01:45:31 -0700 (PDT) Received: by 10.86.2.1 with HTTP; Thu, 1 Nov 2007 01:45:31 -0700 (PDT) Message-ID: <499c70c0711010145o22052a5bpa3ff8ff588f0e984@mail.gmail.com> Date: Thu, 1 Nov 2007 11:45:31 +0300 From: "Abdullah Ibn Hamad Al-Marri" To: "David Xu" In-Reply-To: <472927B2.2090102@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4727E907.4090308@freebsd.org> <499c70c0710310217k3e55b66en23d32c2f6a613c99@mail.gmail.com> <472927B2.2090102@freebsd.org> Cc: Ivan Voras , freebsd-threads@freebsd.org Subject: Re: PTHREAD_YIELDLOOPS boosts mysql super-smack performance X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Nov 2007 10:21:51 -0000 On 11/1/07, David Xu wrote: > Ivan Voras wrote: > > Abdullah Ibn Hamad Al-Marri wrote: > > > >>On Oct 31, 2007 5:31 AM, David Xu wrote: > > > > > >>>it seems over 44% performance is improved. > > > > > >>When could you please commit these changes of libthr will hit RELENG_7 > >>so we could benefit of these improvements? > > > > > > I agree this would be very nice to have in 7.0, especially since it's > > off by default. We can add a tagline to the release to the tune of > > "MySQL gets smacked!" > > > > I will request a MFC. :-) > > Regards, Thank you }:) -- Regards, -Abdullah Ibn Hamad Al-Marri Arab Portal http://www.WeArab.Net/