Date: Tue, 6 Nov 2018 20:48:21 +0700 From: Eugene Grosbein <eugen@grosbein.net> To: Steevan Rodrigues <steevanxperia@gmail.com>, freebsd-hackers@freebsd.org Subject: Re: FreeBSD 11.x thread creation time is 9000+ microseconds on Intel Xeon Gold series CPU Message-ID: <157d9126-158f-d50b-0c38-672d08f199d7@grosbein.net> In-Reply-To: <d2b9eb32-1095-7201-f95c-a52ff75f9e25@grosbein.net> References: <CAKsGTHQnaEsqmf_g%2BhH=agmfJ5Z4sZY8qkw1iJWyOF=1e6qm-g@mail.gmail.com> <d2b9eb32-1095-7201-f95c-a52ff75f9e25@grosbein.net>
next in thread | previous in thread | raw e-mail | index | archive | help
06.11.2018 20:43, Eugene Grosbein wrote: >> I am seeing a FreeBSD 11.x OS poor performance issue . >> CPU is Intel(R) Xeon(R) Gold 5115 CPU @ 2.40GHz ( dual socket CPU with 10 >> cores per socket ) >> >> I have attached a simple program which creates thread and computes time >> taken to create this thread. On this CPU with FreeBSD 11.x OS it takes 9000 >> to 15000 micro seconds ( us) to create >> just one thread. >> >> On other platforms this thread creation time is usually 20 to 30 us only. >> Any idea why it takes so much more time with FreeBSD 11.x ? >> Is there any processor specific tuning that needs to be done ? > > Please set "sysctl kern.eventtimer.periodic=1" and retry your tests. Also "sysctl kern.timecounter.alloweddeviation=0" may help, too.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?157d9126-158f-d50b-0c38-672d08f199d7>