Subject: find uses 400MB memory
To: None <current-users@netbsd.org>
From: Kazushi (Jam) Marukawa <jam@pobox.com>
List: current-users
Date: 09/14/2001 01:25:04
Hi,
Last night, I found my system was very heavy while I was
getting crc of all files in 80GB file system to check the
status of backup. When I checked the system, "find" program
looked like the reason of the problem.
$ ps aux
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
root 6776 11.5 0.2 404852 600 p4 S+ 6:16PM 3:16.66 find . -type f -ex
First, I doubted find program itself, but it didn't allocate
any additional memory after the initialization. So, I guess
fts uses memory. Is there any option to reduce this? Using
404MB is too bad. Thanks.
In addition, this is the output of vmstat while my machine
was heavy. It seems that the number of page out is too
much.
$ vmstat 5
procs memory page disks faults cpu
r b w avm fre flt re pi po fr sr w0 w1 w2 w3 in sy cs us sy id
2 1 8 751704 1316 1510 21 2 1649 2152 4153 16 140 132 64 1004 3120 1954 12 34 54
1 110 751936 1392 1300 0 0 244463 871 246398 114 82 84 45 627 1731 738 11 50 39
0 2 9 752548 704 2383 0 0 194426 1694 196317 8 201 203 38 741 3307 1273 24 52 23
2 0 5 752076 1004 2341 0 1 219584 1629 221262 21 186 187 52 804 3210 1253 24 53 23
Regards,
-- Kazushi