LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Checking on a program's disk space usage (https://www.linuxquestions.org/questions/linux-newbie-8/checking-on-a-programs-disk-space-usage-4175499559/)

jyunker 03-26-2014 12:40 PM

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

rtmistler 03-26-2014 01:19 PM

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



All times are GMT -5. The time now is 11:48 PM.