swapfile manager

Core libraries and systems
Message
Author
User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#61 Post by bigpup »

Are you sure you actually have a swap file?
Sure you are not talking about the xenialpup64save being made 4GB?
That is not a swap file. Something totally different.

A true swap file.
The file should be named swapfile.
It should be located in /mnt/home/

If it is there as swapfile for the name.

The swapfile manager will just replace it with whatever you make it in swapfile manager.
It makes a swap file named swapfile.
It overwrites the old swapfile with the new one.
So, that changes the size.

If the original swap file is named something other than swapfile.
You will end up with two swap files.

If you only want one swap file.
In the Swapfile Manager turn off swap.
In a file manager (Rox)
Delete the old swap file, so you only have the new one.
In Swapfile Manager turn swap back on.
Done.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

User avatar
d_vineet
Posts: 116
Joined: Mon 06 Aug 2018, 05:32
Location: Bharat

#62 Post by d_vineet »

Sure I am talking about swapfile (while doing frugal install initially, I was asked reg swap file by the installer; I had specified size for that; don't exactly remember size 4 or 2 GiB).

Now I can see 2 related files in /mnt/home/
1) pupswap.swp (4GiB),
2) swapfile (w/o any file extension) (2GiB).

As you had mentioned, "swapfile" must have been created by the puppy installer initially.
But from where came the pupswap.swp, I don't know.

Should I delete both of these files and create a fresh one by using swapfile manager?

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#63 Post by bigpup »

pupswap.swp probably was made by the installer you used.
What installer did you use?
Should I delete both of these files and create a fresh one by using swapfile manager?
You could do that or just delete the pupswap.swp.
Probably will need to turn swap off in Swapfile Manger to be able to delete.

Whatever you do in the Swapfile Manager will just overwrite the one named swapfile.

Just remember in Swapfile Manager to turn swap back on when you get done.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

User avatar
d_vineet
Posts: 116
Joined: Mon 06 Aug 2018, 05:32
Location: Bharat

#64 Post by d_vineet »

bigpup wrote:pupswap.swp probably was made by the installer you used.
What installer did you use?
While shutting down puppy for 1st time, it asked me whether to save, then I followed the instructions, did frugal install. So not sure reg the name of installer.
Should I delete both of these files and create a fresh one by using swapfile manager?
You could do that or just delete the pupswap.swp.
Probably will need to turn swap off in Swapfile Manger to be able to delete.
Whatever you do in the Swapfile Manager will just overwrite the one named swapfile.
Just remember in Swapfile Manager to turn swap back on when you get done.
OK. thanks.

User avatar
d_vineet
Posts: 116
Joined: Mon 06 Aug 2018, 05:32
Location: Bharat

#65 Post by d_vineet »

Firsly did "swap off".
Then tried to delete file /mnt/home/pupswap.swp using ROX-Filer by rgt-clk.
1) message "ERROR: Operation not permitted".
2) After a few seconds, OS halted with a message flash of "RAM remaining is 0. Pl. consider reboot...".

I then made "swap on". OS again working OK.
It's maybe that we are not supposed to delete pupswap file?

However, I can delete swapfile from ROX-Filer w/o any error, but it doesn't appear in trash. Then re-created another one by using "swapfile - Manager".

EDIT:-
Upon inspecting with "htop", swap is shown to be 6143GiB.
Means addition of pupswap.swp(4GiB) + swapfile(2GiB)
Screenshot is attached.
Can't understand this puzzle!
Attachments
htop_screenshot.png
(186.15 KiB) Downloaded 320 times

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#66 Post by bigpup »

When you delete something in Rox it is deleted, gone.

To put something in trash. You have to drag and drop it into the trash desktop icon.
Some Puppies have trash in the Rox right click menu.

Htop shows you have 4GB of memory.
Is that correct??
Turning off swap should have no affect with that much memory.
It also shows using swap and only using 297mb of ram.
That is strange.
Swap should not even be used with that much ram.
Not sure what that indicates.
Then tried to delete file /mnt/home/pupswap.swp using ROX-Filer by rgt-clk.
1) message "ERROR: Operation not permitted".
This file seems to be setup to not let it easily be deleted.
There is a command you can use in a terminal to delete.
But before I tell you.
From what you say happened when swap was turned off, maybe you should just keep pupswap.swp

I would post about this issue on the Xenialpup64 7.5 topic so the developer of Xenialpup can see it.
http://www.murga-linux.com/puppy/viewtopic.php?t=107331
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

User avatar
d_vineet
Posts: 116
Joined: Mon 06 Aug 2018, 05:32
Location: Bharat

#67 Post by d_vineet »

bigpup wrote:I would post about this issue on the Xenialpup64 7.5 topic so the developer of Xenialpup can see it.
http://www.murga-linux.com/puppy/viewtopic.php?t=107331
Not able to see this post in that thread. Maybe the url is incorrect?

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#68 Post by bigpup »

No.
I am saying that is the topic for Xenialpup64 7.5

You need to post in it about your problem with this pupswap.swp

Does your computer have 4 GB of memory??
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

User avatar
d_vineet
Posts: 116
Joined: Mon 06 Aug 2018, 05:32
Location: Bharat

#69 Post by d_vineet »

bigpup wrote:No.
I am saying that is the topic for Xenialpup64 7.5
You need to post in it about your problem with this pupswap.swp
Got that. I will post it there. Thanks.
Does your computer have 4 GB of memory??
Yes. My laptop has 4GB memory (physical RAM)

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#70 Post by 666philb »

hi d_vineet,

you can check the location and info on swaps using this command

Code: Select all

cat /proc/swaps
the output of this for me is

Code: Select all

Filename			                      Type		Size	Used	Priority
/initrd/mnt/dev_save/pupswap.swp        file		8388604	0	-2
to turn the swap off (note that you can only turn off a swap that isn't being actively used)

Code: Select all

swapoff /initrd/mnt/dev_save/pupswap.swp
once the swap is off you can can safely delete it with the file manager (if it's a swapfile)
then create a new swap file of your desired size

Code: Select all

pupswap
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

Post Reply