From owner-freebsd-current@freebsd.org Mon Jul 4 06:20:31 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 73411B901D2 for ; Mon, 4 Jul 2016 06:20:31 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) (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 05329262D for ; Mon, 4 Jul 2016 06:20:31 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: by mail-wm0-x22d.google.com with SMTP id f126so90133309wma.1 for ; Sun, 03 Jul 2016 23:20:30 -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=DJQ3vl1wSS6nnNtR6enf1ANrcq7ZuQxAAMk4mX9UzjI=; b=TiXnhIcKXjuLbK218lQzLP4aOhTrcPNnXXbo19mUfP6SLxiS9cTbiT2+DqbBo9NZ+w HbNVmWCxXgCfCapqSAjCDXKbUAjuopFvTZROfp3FMSoesMPIvw5YmYkmr9nl1pSuXF1Q 2tu/AAxmi6fHxmyw5agsJYf+lCtEmzGtqo/fjNwoSw0TTbTKJ7O67xNeDyEGQpdxvUs6 No1Ln0cSuGHe2Oled1Tr0+pCjoHJaIOiFbjfKu0mBEhJo78xLJ30lehZZPCKc0TwUqMf 0B72FVUbIlgIQ0yhfXNoj+/ULzcC9S3Fq3mDzLGZfsNj2paDUurIgDt83RPcfR2t/CvX KL9Q== 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=DJQ3vl1wSS6nnNtR6enf1ANrcq7ZuQxAAMk4mX9UzjI=; b=FvaXqwKv1MdHfLVm2cX6BHPJQXhMhnvrmMlXSeyXxqf2lxGyQ9A/BR3TLU0FruGz+6 lOJ+l/fMVqko2f1cKEyUADE6A/sWiXfJnh9C6hMt5wzilPLq+ldUoBQIInQzwJoPWVa6 JvTA7s0VFBSUR1o8Xs33qyjOqAdgakg6ALUlJwqLqpqOH0Vkpy7VlBvyBf8FZPGSBTCu rHGWgWZtOm4DOxMgoZmG2e190VxLiAmYNIcxeDwJPE+mpQxWlrf8P9FK/0wQ0yN5Svnb BOaj9AuemQ0ZS2YHqx8w0VxIMotmhZC9qnT0S/NaprmJRwn4ijtTimV6XxSj3fQFVFNK O7Jg== X-Gm-Message-State: ALyK8tJJo/ZpE0N+KfI/iGZBga5ZWpwn8ahlmdWAXHy9Q5LJeQIR8p2mQEqcWnJJBXJNfw== X-Received: by 10.28.199.139 with SMTP id x133mr8311422wmf.45.1467613228722; Sun, 03 Jul 2016 23:20:28 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by smtp.gmail.com with ESMTPSA id i6sm698845wjk.3.2016.07.03.23.20.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Jul 2016 23:20:27 -0700 (PDT) Sender: Baptiste Daroussin Date: Mon, 4 Jul 2016 08:20:27 +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: <20160704062026.oqml7ehc6ka7gg37@ivaldir.etoilebsd.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="pu3x5oqwxi2vjtvf" 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 06:20:31 -0000 --pu3x5oqwxi2vjtvf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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: >=20 > % uname -a > FreeBSD mbp.gddsn.org.cn 11.0-ALPHA6 FreeBSD 11.0-ALPHA6 #121 r302331M: M= on > Jul 4 10:47:27 CST 2016 root@mbp.gddsn.org.cn:/usr/obj/usr/src/sys/M= ACBOOK > amd64 >=20 > top show: > 4457 hwh 1 100 0 16784K 4416K CPU4 4 0:22 98.86% ls >=20 > any ideas? >=20 Is it in all directories or only in directories with files in chinese characters? Is it only happening when you run ls with some arguments (in particular -l)= or with any arguments? Do you see the same if you force any other locale like en_US.UTF-8? Best regards, Bapt --pu3x5oqwxi2vjtvf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXegAqAAoJEGOJi9zxtz5a1JAQAMFByUlh5EkyX9+XshzaZI3h R9QUzz6/sVxCc207We1MBrROcshvY32XH7qa+HK5RbZr1dBc7B+iGhayuQVEN93x HseoydDhhpmD8yXsFhl+/M++VFjoqLPHljwQOGbMiNjcRegrEaI8r3vSQU8PX5BB 2nNL8+WpOtOf3Ki1RoVUGCGW87M5riJ2PK5NyP8V1rlXNJNXqIfKUQwN5sc8ukFg PENo2tSj7qFsQI7GaZBi26iynbX7owUpr+s2fAzagETZetxcSjq0NH0hcVvQFJLW /Zk7ZtBWuOirCalYPRu/93W4pzFlECA/ySmBK9fndU3livmjMuGgB20+IfnfcGsj Q1FwSgJKd1Ist7hWW7QD3Wc++xI8Wi5svG0In6lIOqaAqRYDqzNegTPxwWzCRzjF X/Y/wsFIT4tAFDw1AKCcRjLE39Kr8lLJT0MG0XBDIlowzBkZtW5KV0XWlYcIKeQx D0/VMCaYo7aV1Y1IwiPvpJmX1X691bUL9oKAJmWfv6EXKc0iFfbrlOx+hIupF/fd 3wxl2WjXDkFscxeCpXvoFUF6YBlRucFU27RRK/GclXeCLmTANBSSEui/wRoLiRW6 tLgFDM1VlbNZIvtaFz1eH6MUHQScKtG4nhizVMMu0dEpHl/m1Ya3yJ7r45dS8nMl b4hG6ChAtfZ+yyDInSvf =GPqs -----END PGP SIGNATURE----- --pu3x5oqwxi2vjtvf--