Subject: Re: bin/28492 (more(1) doesn't handle NUL data blocks well)
To: None <gnats-bugs@NetBSD.org>
From: Bob Kemp <email@example.com>
Date: 09/24/2006 20:08:14
> 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 firstname.lastname@example.org:/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
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.