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: [email protected]
          Reporter: [email protected]

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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to