From owner-freebsd-threads@FreeBSD.ORG Tue Feb 10 17:32:14 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3581216A4CE for ; Tue, 10 Feb 2004 17:32:14 -0800 (PST) Received: from digitalme.com (imap.digitalme.com [193.97.97.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BE0643D2F for ; Tue, 10 Feb 2004 17:32:14 -0800 (PST) (envelope-from dkt@digitalme.com) Received: from dkt [210.0.207.157] by digitalme.com with NIMS ModWeb Module; Wed, 11 Feb 2004 09:31:44 +0800 From: Dung Patrick To: davidxu@viatech.com.cn, Date: Wed, 11 Feb 2004 09:31:44 +0800 X-Mailer: NIMS ModWeb Module X-Sender: dkt MIME-Version: 1.0 Message-ID: <1076463104.c8c39f40dkt@digitalme.com> Content-Type: text/plain; charset="BIG5" Content-Transfer-Encoding: quoted-printable cc: freebsd-threads@freebsd.org Subject: Re: Re: Question about threads [beaver challenge] X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Feb 2004 01:32:14 -0000 Would you please explain this parameter: kern.threads.max_groups_per_proc Patrick -----Original Message----- From: David Xu To: Kris Gale Date: Wed, 11 Feb 2004 07:00:15 +0800 Subject: Re: Question about threads [beaver challenge] Kris Gale wrote: >>On Tue, Feb 10, 2004 at 09:54:21AM -0700, Kris Gale wrote: >> =20 >> >>>>1a) Is it stable to use KSE with mySQL? >>>> =20 >>>> >>>Not in my experience. >>>http://lists.freebsd.org/pipermail/freebsd-threads/2004-February/001568.= html >>> =20 >>> >>How did you compile and configure MySQL with KSE? >> >>Did you build it from ports? If so, what version? >>What configuration did you use? >> =20 >> > >MySQL 4.0.17 from ports. KSE entries in libmap.conf. > >I tried it with and without BUILD_OPTIMIZED. I did not BUILD_STATIC, >as I normally do. The DB_DIR was reconfigured. > > =20 > >>How big were the tables that you used? >> =20 >> > >The database powers a complicated web application. There are about >150 tables. Some have a few rows, some have hundreds of thousands >of rows. > > =20 > >>How many queries did you hit the database with? >> =20 >> > >---[ From previous thread]--- >The first time I tried it, we were maintaining a load of about 600 >threads and 300 queries/second and lasted about three hours >before the thread count went through the roof and MySQL became >unresponsive. > >The second time, we were sustaining a load of 1300 threads and >600 queries/second. This only lasted about 30 minutes. >------ > >I wasn't able to see the total number of queries because the >database became unresponsive, but a quick estimate using the >query rates and uptimes above would be several million. > >300 qps * 60 seconds * 60 minutes * 3 hours =3D 3.24 million >600 qps * 60 seconds * 30 minutes =3D 1.08 million > >Kris > > =20 > What's the value of your sysctl kern.threads.max_threads_per_proc and kern.threads.max_groups_per_proc ? Mysql heavily uses system scope thread. 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"