Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jul 2016 14:36:11 +0800
From:      Huang Wen Hui <huanghwh@gmail.com>
To:        Baptiste Daroussin <bapt@freebsd.org>
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:  <CAB8uncZNFncxCbaDuJ9FKiaNSrOy5QTiXmP0fy5yxZZ-i=JXqg@mail.gmail.com>
In-Reply-To: <20160704062026.oqml7ehc6ka7gg37@ivaldir.etoilebsd.net>
References:  <CAB8uncYp7fBytHUqxxOU2nr5DY-4CTnp0983VEhc2UOUCdLHyQ@mail.gmail.com> <20160704062026.oqml7ehc6ka7gg37@ivaldir.etoilebsd.net>

next in thread | previous in thread | raw e-mail | index | archive | help
2016-07-04 14:20 GMT+08:00 Baptiste Daroussin <bapt@freebsd.org>:

> 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=zh_CN.UTF-8
> and
> > LC_ALL=zh_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 chinese
> characters?
>
Yes, the  directory contain Chinese characters.

>
> Is it only happening when you run ls with some arguments (in particular
> -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
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAB8uncZNFncxCbaDuJ9FKiaNSrOy5QTiXmP0fy5yxZZ-i=JXqg>