Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jul 2016 08:41:19 +0200
From:      Baptiste Daroussin <bapt@freebsd.org>
To:        Huang Wen Hui <huanghwh@gmail.com>
Cc:        freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: ls eat high CPU time when LANG=zh_CN.UTF-8 and LC_ALL=zh_CN.UTF-8
Message-ID:  <20160704064119.xm7tcw53vejchgmm@ivaldir.etoilebsd.net>
In-Reply-To: <CAB8uncZNFncxCbaDuJ9FKiaNSrOy5QTiXmP0fy5yxZZ-i=JXqg@mail.gmail.com>
References:  <CAB8uncYp7fBytHUqxxOU2nr5DY-4CTnp0983VEhc2UOUCdLHyQ@mail.gmail.com> <20160704062026.oqml7ehc6ka7gg37@ivaldir.etoilebsd.net> <CAB8uncZNFncxCbaDuJ9FKiaNSrOy5QTiXmP0fy5yxZZ-i=JXqg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--xwru4yqx2gcivqm5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jul 04, 2016 at 02:36:11PM +0800, Huang Wen Hui wrote:
> 2016-07-04 14:20 GMT+08:00 Baptiste Daroussin <bapt@freebsd.org>:
>=20
> > 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.UT=
F-8
> > and
> > > LC_ALL=3Dzh_CN.UTF-8:
> > >
> > > % uname -a
> > > FreeBSD mbp.gddsn.org.cn 11.0-ALPHA6 FreeBSD 11.0-ALPHA6 #121 r302331=
M:
> > 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 chinese
> > characters?
> >
> Yes, the  directory contain Chinese characters.
>=20
> >
> > Is it only happening when you run ls with some arguments (in particular
> > -l) or
> > with any arguments?
> >
> I use  ls -wGl
>=20
> >
> > 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.
>=20
>=20
> > 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?

Best regards,
Bapt

--xwru4yqx2gcivqm5
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXegUFAAoJEGOJi9zxtz5a4icP/AyFjDTd1YrC6Ga7l+5BRjK7
UdRKEtbLWjnlKHNhlQEFG7VzUUjDuwWNveWl1TjM7TjFGOV2HslNI2NuD7G4jXKA
HUQkWz7YCjKX15GHIyH3Ud68FPMgRryE6MNj3aUqBmAEo4bg1lsxeGJcPecSQ7J3
/U8Buj9yOka07Mv4aUI1GIEDxUNMXLItrxfeeTYnCMTHmaLIZx2ppUCqbHRvkcE9
R22g0VxGCcrgqhIXvHYEnVrqEU3TJXjFviJTWYu1ZJPsbYz34mZ6uifwfEVHzi0Q
sjgfspmhue/fOAvFZXJeiXGvp73MOmDQiPO772uw1vFe7sFnxa6C5kO3WUmjjt3V
U9t0E73ZcO6zwUlHcEy7sf+xREWWBC6htyg2R42zFpbSeYATtjipZ7ARtI7RmI1q
iHd99JTCQwejUkWHBf5eN5a+2QKEuR90DUR2xGzU0VkD61byNZ5vdKHbkYREqaom
k8bwoV4PKRkI42BevsxUmrKv+1wceAk8P//xGiLDZDIRMiyFnbb+L7GwrRrkCfc8
VhzFsvouHpUwVMKiEHMmYeGPSnmvva5iUm89ZzDSUjjU5GyXQkfEQTtn1QKOeWJj
0PxBHZZ0l5wei33pcurrC0KBVuffDn8G19b1kUxY7/S5e5uG0gWnF+GI22b7bTyJ
2D5Cmm5enwjmJaKJlkNf
=pql9
-----END PGP SIGNATURE-----

--xwru4yqx2gcivqm5--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160704064119.xm7tcw53vejchgmm>