Bug 233396 - In FreeBSD 11.x thread creation time is too much on Xeon Gold 5115 CPU
Summary: In FreeBSD 11.x thread creation time is too much on Xeon Gold 5115 CPU
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: threads (show other bugs)
Version: 11.2-STABLE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-threads (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-22 05:17 UTC by Steevan
Modified: 2018-11-22 05:17 UTC (History)
0 users

See Also:


Attachments
simple c code (1.01 KB, text/plain)
2018-11-22 05:17 UTC, Steevan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steevan 2018-11-22 05:17:01 UTC
Created attachment 199443 [details]
simple c code

Hi 

I have attached simple program which just creates one thread and computes time taken to create a thread. 

System Details: 
dmesg | grep CPU
CPU: Intel(R) Xeon(R) Gold 5115 CPU @ 2.40GHz (2400.07-MHz K8-class CPU)
FreeBSD/SMP: Multiprocessor System Detected: 40 CPUs

System Information
    Manufacturer: Supermicro
    Product Name: Super Server
    Version: 0123456789
Base Board Information
    Manufacturer: Supermicro
    Product Name: X11DPH-Tq
    Version: 1.01

On this system it takes about 6000 to 15000 microseconds ( usec) to create a thread. 

I also ran Phoronix OS bench test suite and that also shows same issue.
Couple of other users have also reported this issue for FreeBSD 11.x 
Please see these following links and look for "Create Threads"   row.

https://openbenchmarking.org/result/1804094-AR-1804096AR58
https://openbenchmarking.org/result/1807114-RA-WINDOWSSE47

On the other hand  this issue is not found when I run FreeBSD 12.0 Beta3 on this same hardware. It takes about 200 to 300 usec to create one thread. 

Regards
Steevan