From nobody Tue Jun 28 21:19:32 2022 X-Original-To: emulation@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 62DC386DD3E for ; Tue, 28 Jun 2022 21:19:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LXctD6GzJz4XCm for ; Tue, 28 Jun 2022 21:19:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B49BF24568 for ; Tue, 28 Jun 2022 21:19:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 25SLJWLg090264 for ; Tue, 28 Jun 2022 21:19:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 25SLJWBM090263 for emulation@FreeBSD.org; Tue, 28 Jun 2022 21:19:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: emulation@FreeBSD.org Subject: [Bug 230273] linux_select CALL is very slow (100 ms) Date: Tue, 28 Jun 2022 21:19:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jasonmader@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: emulation@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Development of Emulators of other operating systems List-Archive: https://lists.freebsd.org/archives/freebsd-emulation List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-emulation@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1656451172; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Eb0PKqPNHQDfXuOGN0xILCEiDTd+9yl0NBFd+Ln2p5A=; b=vSNjvA1MkRWG59qX5PZJ9kkQlEwkyLUOIi/ZJ3XLO4FuNMFXNg9axbWx1ER+BjnbrS6Xv7 gM5CxGssfdblEvKN1BuXYfdUabJvzc64Qm9WJmZlFm04F+bNQvD0bD9b0A5CLJT108op4s MRqpLWdD5tAem6p1q021iQYAwYx2NlqgXwxe/NvC86E4GPJFSiMjVNSqM+P3aBV90dQeqb LxGJ5KpF7TkrN/UB73Fdea2xDITYOgkgcV8M/X+u98Iu4yKW5KkZgEyZK34af0EsuLzNn2 p6NkOhO1Jhn6DTrZVquC4zK5aiOn4z7g0L1HVmiMyXQoLrYQHLhx651kxjUI5Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1656451172; a=rsa-sha256; cv=none; b=mhbwOa1OwH4KRBtyrTT2EMQ0F3WjIEVmaDtNFFSzIm/FJ5zLV16roBPHEKOAkhUGTRU2UR hJYd7nHgOcaF8F/Lyg35XlscMcEQeDHgL64/h8frExmXA2iSFz+EjWZDmppW4wp839l0FT y3jpYAzVrOwOaWRMSK5Q9MXegUvUoaL9FhRJv3Vjwnj5PLQxiUBdOg8fuczKfK061RnhAd o9hxaiHOxkl0ebNvkSq6f9TFRtWSj3aQ/cgE64WX08JNACuAgXXyYCqsOKZTCXfO7YkqVw O3ESdqTzcDfXV4wnOniaIkAPj6LxXavCr8aZ4llijj/QaY/j4RDubAgAvQBuhg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230273 --- Comment #11 from Jason Mader --- (In reply to Dmitry Chagin from comment #10) I've since updated the computer to FreeBSD 13.0-RELEASE, but here is a new ktrace, kdump -HAR -m 32, 35539 101733 lstc_server 0.000004 CALL L64 linux_time(0) 35539 101733 lstc_server 0.000001 RET L64 linux_time 1656449008/0x62bb6= 7f0 35539 101733 lstc_server 0.000002 CALL L64=20 linux_newstat(0x800b88f74,0x7fffffffbe60) 35539 101733 lstc_server 0.000002 NAMI L64 "/compat/linux/etc/localtime" 35539 101733 lstc_server 0.000002 NAMI L64 "/etc/localtime" 35539 101733 lstc_server 0.000002 STRU L64 struct stat {dev=3D16125346129888550616, ino=3D897, mode=3D0100444, nlink=3D1, uid=3D0,= gid=3D0, rdev=3D18446744073709551615, atime=3D1632399362.502502000, mtime=3D1632399362.502578000, ctime=3D1632932022.897132000, birthtime=3D1632399362.502578000, size=3D118, blksize=3D4096, blocks=3D1, f= lags=3D0x800 } 35539 101733 lstc_server 0.000001 RET L64 linux_newstat 0 35539 101733 lstc_server 0.000004 CALL L64 linux_time(0) 35539 101733 lstc_server 0.000002 RET L64 linux_time 1656449008/0x62bb6= 7f0 35539 101733 lstc_server 0.000002 CALL L64 linux_time(0) 35539 101733 lstc_server 0.000001 RET L64 linux_time 1656449008/0x62bb6= 7f0 35539 101733 lstc_server 0.000003 CALL L64 linux_time(0) 35539 101733 lstc_server 0.000001 RET L64 linux_time 1656449008/0x62bb6= 7f0 35539 101733 lstc_server 0.000003 CALL L64=20 linux_semop(0x60000,0x7fffffffe3d0,0x1) 35539 101733 lstc_server 0.000002 RET L64 linux_semop -1 errno -11 Reso= urce temporarily unavailable 35539 101733 lstc_server 0.000002 CALL L64=20 linux_select(0x6,0x7fffffffe310,0,0,0x7fffffffe390) 35539 101733 lstc_server 156.624888 RET L64 linux_select 1 35539 101733 lstc_server 0.000042 CALL L64=20 linux_accept(0x4,0,0x7fffffffe3ac) 35539 101733 lstc_server 0.000006 RET L64 linux_accept 0 You say timeval conversion, I looked at the /etc/localtime (which is FreeBSD UTC) # cksum etc/localtime 2003832353 118 etc/localtime There is no Linux /compat/linux/etc/localtime in this Jail, and when I chec= k a Linux computer's UTC, it is slightly different, # hexdump UTC 0000000 5a54 6669 0032 0000 0000 0000 0000 0000 0000010 0000 0000 0000 0000 0000 0000 0000 0000 0000020 0000 0000 0000 0100 0000 0400 0000 0000 0000030 0000 5455 0043 5a54 6669 0032 0000 0000 0000040 0000 0000 0000 0000 0000 0000 0000 0000 0000050 0000 0000 0000 0000 0000 0000 0100 0000 0000060 0400 0000 0000 0000 5455 0043 550a 4354 0000070 0a30 0000072 After adding the Linux UTC as /compat/linux/etc/localtime 35539 101733 lstc_server 0.000003 CALL L64 linux_time(0) 35539 101733 lstc_server 0.000001 RET L64 linux_time 1656450808/0x62bb6= ef8 35539 101733 lstc_server 0.000002 CALL L64=20 linux_newstat(0x800b88f74,0x7fffffffbe60) 35539 101733 lstc_server 0.000001 NAMI L64 "/compat/linux/etc/localtime" 35539 101733 lstc_server 0.000002 NAMI L64 "/compat/linux" 35539 101733 lstc_server 0.000003 NAMI L64 "/compat/linux/etc/localtime" 35539 101733 lstc_server 0.000002 STRU L64 struct stat {dev=3D16125346129888550616, ino=3D390, mode=3D0100644, nlink=3D1, uid=3D0,= gid=3D0, rdev=3D18446744073709551615, atime=3D1656450714.160038000, mtime=3D15689736= 52, ctime=3D1656450714.160221000, birthtime=3D1568973652, size=3D114, blksize= =3D4096, blocks=3D1, flags=3D0x800 } 35539 101733 lstc_server 0.000001 RET L64 linux_newstat 0 35539 101733 lstc_server 0.000003 CALL L64 linux_time(0) 35539 101733 lstc_server 0.000003 RET L64 linux_time 1656450808/0x62bb6= ef8 35539 101733 lstc_server 0.000002 CALL L64 linux_time(0) 35539 101733 lstc_server 0.000002 RET L64 linux_time 1656450808/0x62bb6= ef8 35539 101733 lstc_server 0.000002 CALL L64 linux_time(0) 35539 101733 lstc_server 0.000001 RET L64 linux_time 1656450808/0x62bb6= ef8 35539 101733 lstc_server 0.000003 CALL L64=20 linux_semop(0x60000,0x7fffffffe3d0,0x1) 35539 101733 lstc_server 0.000001 RET L64 linux_semop -1 errno -11 Reso= urce temporarily unavailable 35539 101733 lstc_server 0.000004 CALL L64=20 linux_select(0x6,0x7fffffffe310,0,0,0x7fffffffe390) 35539 101733 lstc_server 156.860688 RET L64 linux_select 1 35539 101733 lstc_server 0.000040 CALL L64=20 linux_accept(0x4,0,0x7fffffffe3ac) 35539 101733 lstc_server 0.000004 RET L64 linux_accept 0 --=20 You are receiving this mail because: You are the assignee for the bug.=