grep out of memory error



Hi,

not sure that I'm in the right mailing list here, but I got myselft the 6.1-RC1 amd64 iso yesterday and installed it.

I've got a minimum system running and just 10 minutes ago, I ran a 'grep' command and it returned an "out of memory" error.

The command run was:

grep -d recurse sasl /*

The error caused:

swap_pager: out of swap space
swap_pager_getswapspace(16): failed
HOSTNAME kernel: pid 618 (grep), uid 0, was killed: out of swap space
Killed

Not sure, but this seems a bit odd; I've got one GB of RAM and 512M of swap space allocated.

Running top beside the command gives you a nice view of what's happening: All of the RAM is used up almost instantly and the the swap space. All in all, in about 3 seconds, I get that out of memory error.

Again, I'm not an expert in these matters, but it seems odd that grep needs more than 1.5GB to grep (even if it's recursive from the root dir).

Does anyone else experience that problem as well?

Thanks,

Dragos
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: grep out of memory error
    ... 'grep' command and it returned an "out of memory" error. ... HOSTNAME kernel: pid 618, uid 0, was killed: out of swap space ... but this seems a bit odd; I've got one GB of RAM and 512M ...
    (freebsd-hackers)
  • Re: MacTeX 2007 and documentation
    ... may be the most useful command available when doing searches at the ... will find every file on your system that has the text "memoir" on it, ... If locate generates 30 lines of text, where each line is a file, grep ... I need a Unix guru to chat to for half an hour or so to put me straight. ...
    (comp.text.tex)
  • Re: piping multiple selections to mv or cp and exclusion
    ... pipe to shell to execute each command statement ... Unix is indeed lifelong learning :-) ... and the regexp. ... back into the grep statement. ...
    (comp.unix.shell)
  • Re: MacTeX 2007 and documentation
    ... means you need expertise in your host operating system as well. ... locate memoir | grep pdf ... I'm not someone who lives at the command line, ...
    (comp.text.tex)
  • Re: Program to scan directories
    ... Is there a UNIX command which scans directories and execute any other ... the regex you specify here is /not/ given to grep to ... entries (files and subdirectories). ... tell grep to recurse through the kpathsea directory (the *.h regex ...
    (comp.unix.programmer)