rk Evans" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, December 13, 2007 12:22 PM
Subject: Re: ls -l takes a forever to finish.
On Wed, 12 Dec 2007 13:28:23 -0600
"Mark Evans" <[EMAIL PROTECTED]> wrote:
this program seems to have the same issues wi
t;[EMAIL PROTECTED]>
> To: "Bill Moran" <[EMAIL PROTECTED]>
> Cc: "Wojciech Puchar" <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>; "Mark Evans" <[EMAIL PROTECTED]>
> Sent: Thursday, November 29, 2007 8:42 AM
> Subject: Re: ls -l take
ark Evans" <[EMAIL PROTECTED]>
Sent: Thursday, November 29, 2007 8:42 AM
Subject: Re: ls -l takes a forever to finish.
On Thu, 29 Nov 2007 08:42:44 -0500
Bill Moran <[EMAIL PROTECTED]> wrote:
In response to Wojciech Puchar <[EMAIL PROTECTED]>:
> > ls | wc
>
&g
On Fri, Nov 30, 2007 at 05:49 ,
[EMAIL PROTECTED] moved his mouse, rebooted
for the change to take effect, and then said:
> Date: Thu, 29 Nov 2007 08:42:44 -0500
> From: Bill Moran <[EMAIL PROTECTED]>
> Subject: Re: ls -l takes a forever to finish.
> In response to Wojci
the fix would be
mv /usr/home /usr/oldhome;mkdir /usr/home;mv /usr/oldhome/* /usr/home
and after successfull move - rm -rf /usr/home
I like this idea very much...
It results in 100% data loss of your /usr/home contents...
;-)
___
freebsd-questions@f
>
> it is for sure.
>
> the fix would be
>
> mv /usr/home /usr/oldhome;mkdir /usr/home;mv /usr/oldhome/* /usr/home
>
> and after successfull move - rm -rf /usr/home
I really hope you meant: rm -rf /usr/oldhome
Also, mv just moves pointers around, wouldn't a cp -Rp be needed instead?
_
I guess that replacing qsort(3) in
/usr/src/lib/libc/gen/fts.c:fts_sort()
with another sort algorithm which doesn't
expose this anomaly would solve that problem.
for sure his /home wasn't worst case. it's just average case so it's not
that problem.
unless you have 486/33 or slower system there is something wrong.
Another possible scenario is that the directory is badly fragmented.
Unless something has changed since I last researched this (which is
it is for sure.
the fix would be
mv /usr/home /usr/oldhome;mkdir /usr/home;mv /usr/oldhom
ls takes 0.1 seconds user time, ls -l takes 0.3 second user time.
unless you have 486/33 or slower system there is something wrong.
Has anyone tried fsck and/or smartmontools on the drive? Maybe something
like Spinrite?
he stated that CPU load is near 100% so it's not disk problem
On Thu, 29 Nov 2007 08:42:44 -0500
Bill Moran <[EMAIL PROTECTED]> wrote:
> In response to Wojciech Puchar <[EMAIL PROTECTED]>:
>
> > > ls | wc
> >
> > strange. i did
> >
> > [EMAIL PROTECTED] ~/b]$ a=0;while [ $a -lt 1 ];do mkdir
> > $a;a=$[a+1];done
> >
> > completed <25 seconds on 1Ghz C
In response to Wojciech Puchar <[EMAIL PROTECTED]>:
> > ls | wc
>
> strange. i did
>
> [EMAIL PROTECTED] ~/b]$ a=0;while [ $a -lt 1 ];do mkdir $a;a=$[a+1];done
>
> completed <25 seconds on 1Ghz CPU
>
> ls takes 0.1 seconds user time, ls -l takes 0.3 second user time.
>
> unless you have 4
Wojciech Puchar wrote:
ls | wc
strange. i did
[EMAIL PROTECTED] ~/b]$ a=0;while [ $a -lt 1 ];do mkdir $a;a=$[a+1];done
completed <25 seconds on 1Ghz CPU
ls takes 0.1 seconds user time, ls -l takes 0.3 second user time.
unless you have 486/33 or slower system there is something wrong.
ls | wc
strange. i did
[EMAIL PROTECTED] ~/b]$ a=0;while [ $a -lt 1 ];do mkdir $a;a=$[a+1];done
completed <25 seconds on 1Ghz CPU
ls takes 0.1 seconds user time, ls -l takes 0.3 second user time.
unless you have 486/33 or slower system there is something wrong.
__
Is a partition close to full, use df to see that.
doesn't matter as ls read, not writes.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
On Wed, 28 Nov 2007 09:44:03 -0600
"Mark Evans" <[EMAIL PROTECTED]> wrote:
> No we are not using NIS.
>
> it is a large directory i am listing. actually it is the /usr/home
> directory, and is probably the largest on the system. However "ls -l"
> runs for close to six minutesand spends the 10 s
ls | wc
returns " 88368836 71583"
Thanks
Mark
- Original Message -
From: Jeff Mohler
To: Mark Evans
Cc: [EMAIL PROTECTED]
Sent: Wednesday, November 28, 2007 9:52 AM
Subject: Re: ls -l takes a forever to finish.
HOW large is the directory?
On Wed, 2007-11-28 at 09:44 -0600, Mark Evans wrote:
> No we are not using NIS.
>
> it is a large directory i am listing. actually it is the /usr/home
> directory, and is probably the largest on the system. However "ls -l" runs
> for close to six minutesand spends the 10 seconds scrolling the s
complete.
>
>
> Thanks
> Mark
>
> - Original Message -
> From: "Kris Kennaway" <[EMAIL PROTECTED]>
> To: "Mark Evans" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Tuesday, November 27, 2007 5:13 PM
> Subject: Re
AIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, November 27, 2007 5:13 PM
Subject: Re: ls -l takes a forever to finish.
Mark Evans wrote:
I'm using FreeBSD 6.1-RELEASE. When I run "ls -l" it takes forever for
the it to complete. top shows that the "ls -l&quo
/dev
devfs1.0K1.0K 0B 100%/var/named/dev
Thanks
mark
- Original Message -
From: "Brian" <[EMAIL PROTECTED]>
To: "Mark Evans" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, November 27, 2007 4:35 PM
Subject: Re: ls -l takes
Mark Evans wrote:
I'm using FreeBSD 6.1-RELEASE. When I run "ls -l" it takes forever for the it to complete. top
shows that the "ls -l" command uses about 98% of the CPU doing the time. If I run "ls"
I do not experience any problem. anyone have any ideas?
Are you using NIS for user/group
Is a partition close to full, use df to see that.
Is ls -l aliased to something else that is digging into your directory
tree, like when you're in /usr and type du?
brian
On Tue, 27 Nov 2007, Mark Evans wrote:
I'm using FreeBSD 6.1-RELEASE. When I run "ls -l" it takes forever for the it to
On Nov 27, 2007, at 1:53 PM, Mark Evans wrote:
I'm using FreeBSD 6.1-RELEASE. When I run "ls -l" it takes forever
for the it to complete. top shows that the "ls -l" command uses
about 98% of the CPU doing the time. If I run "ls" I do not
experience any problem. anyone have any ideas?
I'm using FreeBSD 6.1-RELEASE. When I run "ls -l" it takes forever for the it
to complete. top shows that the "ls -l" command uses about 98% of the CPU doing
the time. If I run "ls" I do not experience any problem. anyone have any
ideas?
Thanks
Mark
_
24 matches
Mail list logo