LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-26-2014, 01:40 PM   #1
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Rep: Reputation: 0
Checking on a program's disk space usage


I am ruuning aide on my on my Centos 6.5, 64 bit system. The output is
shown below.


Code:
Error on exit of prelink child process
Error on exit of prelink child process
Error on exit of prelink child process
Error on exit of prelink child process
Error on exit of prelink child process
Error on exit of prelink child process
Error on exit of prelink child process
Error on exit of prelink child process
Error on exit of prelink child process
Error on exit of prelink child process
Error on exit of prelink child process
Error on exit of prelink child process
Error on exit of prelink child process
Error on exit of prelink child process
Error on exit of prelink child process
Error on exit of prelink child process
Error on exit of prelink child process
Error on exit of prelink child process
Error on exit of prelink child process
Error on exit of prelink child process
Error on exit of prelink child process
Error on exit of prelink child process
Error on exit of prelink child process
Error on exit of prelink child process
Error on exit of prelink child process
Error on exit of prelink child process
Error on exit of prelink child process
Error on exit of prelink child process
Error on exit of prelink child process
Caught SIGBUS/SEGV while mmapping. File was truncated while aide was running?
Caught SIGBUS/SEGV. Exiting
I am not concerned about the prelink error sice they seem to have no effect on
aide operation. It is the last two lines that concern me.

I believe that this is because the program is runnning out of space on my disk.
I am unfamliar with this (diskpace allocation) on Centos or any linux system.

Is there a way to determine if this is caused by the program running out of disk space?

If there is then is then what is it? I guess it is a command.

The two lines in questions are

Code:
Caught SIGBUS/SEGV while mmapping. File was truncated while aide was running?
Caught SIGBUS/SEGV. Exiting
Any help appreciated.

Thanks in advance.

R,

jyunker
 
Old 03-26-2014, 02:19 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 4,087
Blog Entries: 10

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
df(1) and du(1) both show information about disk space; however if you're running a program and when it terminates it ends up freeing files that it had open, that may cause the space to be freed. I'd run df to see how close you are to the maximum of your file system capacity and at least monitor that while you're running and during the time where you experience your error.
Code:
df -h
will show you disk free information in human readable format; i.e. 6.4M versus some lengthy number that represents the actual number of bytes. Running du on a file, on the specific file can help you to determine how much space that file is using, but also just ls -l will do that.
Code:
du -h <filename>
shows the file size in human readable format. You can use either du or ls -l in a script and have a loop in the script.
Code:
#!/bin/sh

while [ 1 == 1 ]; do
    df -h
    du -h <filename>
    sleep 1s;
done
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
partition space and disk space usage and free don't match nsic Linux - Newbie 3 02-22-2013 01:57 PM
checking disk space misterdanny Linux - Software 5 04-21-2009 04:20 PM
Best program for checking available disk space? TippyToes Linux - Software 5 11-16-2004 10:57 PM
Disk space checking script? jimieee Linux - General 2 04-01-2004 03:57 AM
Checking disk space timberwolf Linux - General 9 12-04-2003 02:18 AM


All times are GMT -5. The time now is 11:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration