Subject: Re: bin/28492 (more(1) doesn't handle NUL data blocks well)
To: None <tron@NetBSD.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: Bob Kemp <bsd@allegory.demon.co.uk>
List: netbsd-bugs
Date: 09/25/2006 20:00:08
The following reply was made to PR bin/28492; it has been noted by GNATS.
From: Bob Kemp <bsd@allegory.demon.co.uk>
To: gnats-bugs@NetBSD.org
Cc: tron@NetBSD.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: bin/28492 (more(1) doesn't handle NUL data blocks well)
Date: Sun, 24 Sep 2006 20:08:14 +0100
> 1.) Under NetBSD "more" is really "less".
It often is :-)
> 2.) I can't reproduce the problem under NetBSD 3.1_RC3. "more /dev/zero"
> displays a screen full of inverse "^@" and seems to behave.
> Can you please try to reproduce the bug with a newer version of NetBSD?
I'm running a fairly recent version of -current but it still happens.
$ uname -a
NetBSD tenebres.loc 3.99.21 NetBSD 3.99.21 (TENEBRES) #0: Sat Jul 1 17:11:20 BST 2006 rob@tenebres.loc:/altroot/sys/arch/i386/compile/TENEBRES i386
$ ps lp 6995
UID PID PPID CPU PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND
1000 6995 14770 1858 -5 0 1048724 416820 biowait D+ ttyp2 0:07.90 more /dev/zero
$ ps up 6995
USER PID %CPU %MEM VSZ RSS TTY STAT STARTED TIME COMMAND
rob 6995 0.6 79.7 1048724 417372 ttyp2 D+ 7:43PM 0:07.94 more /dev/zero
Since I use Java, the memory limits are set higher and the box only has 512M.
If you have more memory, it might not feel so bad to you.
$ ulimit -a
time(cpu-seconds) unlimited
file(blocks) unlimited
coredump(blocks) unlimited
data(kbytes) 3145728
stack(kbytes) 2048
lockedmem(kbytes) 169933
memory(kbytes) 509800
nofiles(descriptors) 500
processes 160
sbsize(bytes) unlimited
The machine is unusable while it frees pages for the 'more' process.
'more' doesn't respond, not even after paging has stopped.
I normally have LESS='-e' in my environment but removing it makes no difference.
If you want more info, or for me to try something, just let me know.
Bob