LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-05-2010, 02:45 AM   #1
casualzone
Member
 
Registered: Jan 2010
Posts: 189

Rep: Reputation: 15
Program does not release diskspace even I have deleted them


I run whole batch of simulations and taking a lot of diskspace (8Gbytes). I have deleted them after examine the results. However, the diskspace remained the same even though i have deleted the files (rm -rf *). Sound like the program does not release the diskspace (maybe in cache or virtual memory? ). It only release the diskspace after i exit completely the program.

Is there a way to ask the program to release the diskspace without exit the program?
 
Old 08-05-2010, 03:09 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Was the program that creates these log files still running when you removed the log files?

If so there the possibility that the program is still connected to the old log files (invisible for the user, but the removed files are still present). Restart the program to release the old log files.

Hope this helps.
 
Old 08-05-2010, 03:10 AM   #3
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
Hi

This is normal with Linux. If a program opens a file, and the file is deleted while the file is open, the disk space is not free until the file is closed.

You can see this if you for example start playing a movie. Then you delete the file. The movie will continue as if nothing happened. When the movie is finished (or you stop it), the disk space becomes free and the file is gone.

So unless the program can close and reopen the files, you will need to exit it and start again.
 
Old 08-05-2010, 11:30 PM   #4
casualzone
Member
 
Registered: Jan 2010
Posts: 189

Original Poster
Rep: Reputation: 15
I am not sure about which log file it is connected.

However, i use df -ah . to check the diskspace which does not link to the program. In other words, I did not use the program to check the diskspace but i did check in the terminal with df command.

I did close the result viewer of the program when checking diskspace, hence the program does not use the results or files anymore.

sounds like no alternative way besides exiting the program..
 
  


Reply



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
Missing Diskspace canyonbreeze Linux - General 4 02-04-2010 09:08 AM
How to release /dev entry of unplugged storage device while a program has a file open 10110111 Linux - Software 4 11-09-2009 02:21 PM
Perl/CGI uploader program - temp file not getting deleted anroy Programming 4 09-13-2006 02:33 AM
diskspace.... yenonn Slackware 5 03-19-2004 07:39 PM
how to check diskspace nbtaher Linux - General 1 05-16-2002 06:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:38 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
Open Source Consulting | Domain Registration