- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- fgrep: not enough memory
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2004 07:28 AM
02-04-2004 07:28 AM
This system is: Model:9000/800/S16K-A
24448 megabytes
I am doing a global find with fgrep.
Excluding NFS mounts of course.
Why is fgrep barking. Is it some kind of buffer
limitation, kernel parm, etc...??
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2004 07:35 AM
02-04-2004 07:35 AM
SolutionSeveral things:
1)Does grep -F ...... do the same thing? fgrep is obsolete now.
2) swap reservation exceeded?
swapinfo -tam
3) max?siz kernel parm maxxed out?
4) ulimit?
If you're grepping the entire system via find, then I'd suspect #3 or #4 is your problem.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2004 07:37 AM
02-04-2004 07:37 AM
Re: fgrep: not enough memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2004 05:24 PM
02-04-2004 05:24 PM
Re: fgrep: not enough memory
The '-type f' in the commandline for the find command might help if the fgrep line works on normal files.
If not, you might make a script that calls fgrep after logging the file it runs on to see what file is causing fgrep to fail...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2004 02:00 AM
02-05-2004 02:00 AM
Re: fgrep: not enough memory
#!/bin/ksh
find / -fsonly hfs -fsonly vxfs -type f -exec fgrep -l "128.166." {} \;>$1.ip
strings=`cat ./exclude.strings`
cat $1.ip|egrep -i -v "$strings">$1.ip.1
----------------------------------------
maxdsiz 131072 - 0-503866 Pages -
maxdsiz_64bit 262144 - 1024-1073479679 Pages
maxssiz 16384 - 0-98048 Pages -
maxssiz_64bit 2048 - 4-262144 Pages -
maxtsiz 65536 - 0-503859 Pages -
maxtsiz_64bit 262144 - 1024-1073741823 Pages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2004 02:22 AM
02-05-2004 02:22 AM
Re: fgrep: not enough memory
You need to do something like this:
find / -fsonly hfs -fsonly vxfs -type f -exec ftest.sh {} \;>$1.ip
Now ftest.sh looks like this:
#!/usr/bin/sh
FNAME=${1}
file ${FNAME} | grep -q "text"
STAT=${?}
if [[ ${STAT} -eq 0 ]]
then
fgrep -l "128.166." ${FNAME}
fi
exit 0
This code could be made more efficient via xargs but that is left as an exercise for the reader.