[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: grep and memory problems with kernel 2.4.1



the /dev directory indeed just lists a list of names wich are linked to
device driver files through the inode table

so in fact you're grep-in the output of the /dev, if this contains some
control chars it might hang your grep command, you should* be able to kill
this from another console

greetings,

joris

-----Original Message-----
From: David B. Harris [mailto:dbarclay10@yahoo.ca]
Sent: Monday, February 19, 2001 2:01 PM
To: debian-user@lists.debian.org
Subject: Re: grep and memory problems with kernel 2.4.1


To quote Thomas Braun <thomas.braun@hammer-ac.de>,
# i do  cd /
# 
# grep -r hallo * 
# 
# und then cames a memory enhausted and the network is down.

Well, since you're specifying -r, it's going recursively through
subdirectories ... I don't know for sure, but maybe it's running into
some problems with some of the devices in /dev? :) Remember, most of
them are just like files, you can 'grep' them all you want, even if it's
not always a good idea ;)

I doubt this would be specific to 2.4.1, though. Have you tried it in
2.2.x? Do you get the same errors(or similar ones) there?

David Barclay Harris, Clan Barclay
    Aut agere, aut mori. (Either action, or death.)


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org



Reply to: