Author Topic: Swap File Cleanup  (Read 2735 times)

Offline bmhjr

  • Newcomer
  • Posts: 47
Swap File Cleanup
« on: 2017 December 27 06:20:50 »
I may have something configured wrong, but I have 3 swap files configured in my Windows user/Appata/Local directory.  PI seems to run fine, so no complaints there.  However, the directories just keep filling up with TMP files and are never deleted.  I have to go in and manually remove them to avoid wasting valuable space on my SSD drive.

Is it expected to have those files remain or is there something possibly configured wrong?  Thanks for any info.

Bill

Offline bmhjr

  • Newcomer
  • Posts: 47
Re: Swap File Cleanup
« Reply #1 on: 2017 December 28 18:05:34 »
No one cleans up their Swap file directory?

Offline RickS

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1298
Re: Swap File Cleanup
« Reply #2 on: 2017 December 28 18:15:45 »
I have a 256GB SSD that's only used for PI swap.  Over several years of frequent PI use I've never had to clean it up and it never runs out of space.

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Swap File Cleanup
« Reply #3 on: 2017 December 28 19:00:45 »
if PI crashes it may leave the swap files behind.

however if you are deleting swap files while PI is running, you're lobotomizing PI and you'll never be able to undo processing steps for whatever images you've deleted, and you'll never be able to save a project.

rob

Offline msmythers

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1178
    • astrobin
Re: Swap File Cleanup
« Reply #4 on: 2017 December 28 19:06:12 »
rob I'm cracking up. Best use of the word lobotomizing.


Mike

Offline bmhjr

  • Newcomer
  • Posts: 47
Re: Swap File Cleanup
« Reply #5 on: 2017 December 28 19:43:24 »
Well, I dont want anything to do with a lobotomy.

I am glad most people dont run out of space, maybe I make too many changes.  It seems to have nothing to with PI crashing unless PI crashes when I dont know it.

I guess I will keep manually deleting them when I think about it.  Thanks

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Swap File Cleanup
« Reply #6 on: 2017 December 28 20:20:52 »
welp... let me try again.

would you go into your windows folder and randomly delete files?

1) if PI is not running, and you find swap files in your swap directories, it is safe to delete them.
2) if PI is running and your swap directory is full, deleting swap files will cause PI to malfunction, eventually. don't do that. you need to get a larger swap disk...

rob

Offline bmhjr

  • Newcomer
  • Posts: 47
Re: Swap File Cleanup
« Reply #7 on: 2017 December 28 20:37:04 »
Of Course I would never do 2). 

What I have to do is 1). 

I just thought that maybe PI would delete these when it was exited as cleanup.  Maybe I assumed incorrectly.


Offline bmhjr

  • Newcomer
  • Posts: 47
Re: Swap File Cleanup
« Reply #8 on: 2017 December 28 20:39:26 »
To be clear, it does not fill up over the course of a project.  Just over time.  It is a 128G SSD

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: Swap File Cleanup
« Reply #9 on: 2017 December 29 09:07:19 »
PI should delete the files when exiting. the only time i've ever seen it leave files behind is if it crashed, which is what i was trying to say earlier in the thread.

rob

Offline bmhjr

  • Newcomer
  • Posts: 47
Re: Swap File Cleanup
« Reply #10 on: 2017 December 29 09:49:20 »
Ok, Thanks Rob.

Bill