[Bug 254639] Fork syscall performance
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Mar 29 13:12:44 UTC 2021
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254639
Bug ID: 254639
Summary: Fork syscall performance
Product: Base System
Version: Unspecified
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: bugs at FreeBSD.org
Reporter: kirill at varnakov.com
Hello.
Can someone please explain where is the error? I am running Python code that
simulates forking a large process and gives poor performance results. Average 4
seconds.
import time
import os
some_str = ' ' * (100 * 1024 * 1024 * 1024)
while True:
p = time.time()
pid = os.fork()
tt = time.time() - p
if pid != 0:
print("%d "%pid + str(tt) )
time.sleep(1)
if pid == 0:
break
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list