From owner-freebsd-current@freebsd.org Mon Jul 4 07:04:05 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4A762B912C7 for ; Mon, 4 Jul 2016 07:04:05 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com [IPv6:2a00:1450:400c:c09::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CDEFD2074 for ; Mon, 4 Jul 2016 07:04:04 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: by mail-wm0-x234.google.com with SMTP id z126so29513254wme.0 for ; Mon, 04 Jul 2016 00:04:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=8KItWJa5ZkZlHYDPdqi2VbYWMd0YyHlnOg69tDrbr5Q=; b=IyN4DS0wYtpvpch0YrrDo6JiSCk4Xw/3oMCJ8588CTR8qWV0Gxi5sA4/b0nN0CfaBQ /Mpw0/kiLVpMco4BUhkTNXeyHs5g3rSi2M6eawXJK3ioBIolYUyYCTQ0uvDZ6eg69o7/ zshhxrkyLK9MTZwNg6VJUdBcKTSjEXLsFNhLPYUK9ulnA6qDrkgykFGOPPUbtvwxSREc eev75I7PZAgxHNOQJFAmlxS8gMQPV+E3VlVbS/jtvQ8G8HWyrHyh/A7te/n3C2wto7sy Y9k4m4P3LRxHfiHsFH3/UNQ7Xa7BamGqDbj41X5NkERh4C4DVd2LofEmx/A1KIsVhDOo bToQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=8KItWJa5ZkZlHYDPdqi2VbYWMd0YyHlnOg69tDrbr5Q=; b=bbkQMJ5Dyj9eIWA72E2x6Z759ud256XKwzsG2lmkgCkqlvzDukP9TAxgflKn8cAG22 lOfAUteqkac+hdKcn+LOcBigf6sVAS4CRBjcHLVF2n2TnNvuwqXjtezfe7/FFj+BIBkm AJMRIxOVlmufxXaP+4Sdgg50M9lronKf1hBn+FmJ1kIrObSW5xOF2aIrjb7dMrBDXJsK xIFHqKZxEBfGeDRdgB/tDNWco0YoAmejqUOeQf7bHJpl4+RpNfiSDnh4OXfgxSiAfFkY FMm3ID2JKu0UGFtGY680385vwIUeSyBABdeF5lKt3B6TNKQjSksTGS/Wu83LhCr+SjJR aoVA== X-Gm-Message-State: ALyK8tLKDMhuIAHqMeDcwgf1hwgJETQgZFw3fB70kw4TJDdEWZAW73uxPG9KmnpIcd3q9g== X-Received: by 10.28.226.138 with SMTP id z132mr8605573wmg.97.1467615842935; Mon, 04 Jul 2016 00:04:02 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by smtp.gmail.com with ESMTPSA id rx9sm3564532wjc.19.2016.07.04.00.04.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Jul 2016 00:04:02 -0700 (PDT) Sender: Baptiste Daroussin Date: Mon, 4 Jul 2016 09:04:01 +0200 From: Baptiste Daroussin To: Huang Wen Hui Cc: freebsd-current Subject: Re: ls eat high CPU time when LANG=zh_CN.UTF-8 and LC_ALL=zh_CN.UTF-8 Message-ID: <20160704070401.uavtrarwtkreolck@ivaldir.etoilebsd.net> References: <20160704062026.oqml7ehc6ka7gg37@ivaldir.etoilebsd.net> <20160704064119.xm7tcw53vejchgmm@ivaldir.etoilebsd.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="yy6aphc4abzehn5e" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1-neo (2016-06-11) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2016 07:04:05 -0000 --yy6aphc4abzehn5e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 04, 2016 at 02:51:46PM +0800, Huang Wen Hui wrote: > 2016-07-04 14:41 GMT+08:00 Baptiste Daroussin : >=20 > > On Mon, Jul 04, 2016 at 02:36:11PM +0800, Huang Wen Hui wrote: > > > 2016-07-04 14:20 GMT+08:00 Baptiste Daroussin : > > > > > > > On Mon, Jul 04, 2016 at 11:56:36AM +0800, Huang Wen Hui wrote: > > > > > Hi, > > > > > On very recent CURRENT, ls can eat high CPU time when > > LANG=3Dzh_CN.UTF-8 > > > > and > > > > > LC_ALL=3Dzh_CN.UTF-8: > > > > > > > > > > % uname -a > > > > > FreeBSD mbp.gddsn.org.cn 11.0-ALPHA6 FreeBSD 11.0-ALPHA6 #121 > > r302331M: > > > > Mon > > > > > Jul 4 10:47:27 CST 2016 root@mbp.gddsn.org.cn: > > > > /usr/obj/usr/src/sys/MACBOOK > > > > > amd64 > > > > > > > > > > top show: > > > > > 4457 hwh 1 100 0 16784K 4416K CPU4 4 0:22 98.= 86% > > ls > > > > > > > > > > any ideas? > > > > > > > > > Is it in all directories or only in directories with files in chine= se > > > > characters? > > > > > > > Yes, the directory contain Chinese characters. > > > > > > > > > > > Is it only happening when you run ls with some arguments (in partic= ular > > > > -l) or > > > > with any arguments? > > > > > > > I use ls -wGl > > > > > > > > > > > Do you see the same if you force any other locale like en_US.UTF-8? > > > > > > > There is no problem if set en_US.UTF-8. > > > > > > > > > > Best regards, > > > > Bapt > > > > > > > > Can you try: > > env -i LANG=3Dzh_CN.UTF-8 LC_COLLATE=3DC ls -l > > > > And tell me if it still happen? > > > No problem with this command. >=20 Ok so there might be an very inefficient code in the new chinese collation = code I will look into it thanks a lot for reporting. Best regards, Bapt --yy6aphc4abzehn5e Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXegpgAAoJEGOJi9zxtz5asn0QAMTj6knx2Bx7s8ZCC1s+Rxum w2ZK6Jga4WPFHR0oYuMDMiLtOaODtN7g2CWl/ifaA4xPdj70caCmfP4IF4VajQWT RQJTHpGesOyD/SAiq1MQKpW5C+6izQZgKQl637IlpLZ+dmQLpk3ZgXUy7LceYDAx jQGgkI5zMJINa/pzKny2Yjfxee0ILVKTzfnF7gtgQzGwBLp8JzN+a5pBTJQ3ESOD V4aW297MQbcgBvwpYkIgMymKrTOxtxtW6M35sm2hPYTGH6+0RY5YSDVloD6/sJvt hxVfgCnF8zemDq6Kv/YvF+Rs+9+qUw1kl3MkoLhCyzdJi6np0lPIx9jHo6qnA+Bw lXnSSn2LPAOgxne2EeFiVwIa4tEYZ5vEsFHZcMY1qWYkUDn2cdPpfuhpW0Ow2SDO OuSJcSuZlitqSnTVeU52C1KAxco6njEhYoU+DtIevnuS88VgIIlYzk2Zh65VS136 F5TqoIKJzkVeTxAoCnA3bQdXaUqWTNcTGicZmcF/w4Sfiq/hGBUF5IGTaQLJQ0WE c3XEKQ5wtwQkfJFG7746lGG+t4M1+xYj1SmLa6UqMBiyVfKr4xadu1uSQU006tVJ k/Pwqmf8ZS3BCLqj+9IOP5O6wLSaTRCMuobRXCFfF5daE1rmkaIj7bZdfhXe87tl gQaKsU3e/q/OPm8uehmU =bu+P -----END PGP SIGNATURE----- --yy6aphc4abzehn5e--