Puppy Swap File Questions

Using applications, configuring, problems
Message
Author
hakar
Posts: 7
Joined: Sat 10 Oct 2009, 08:56

#31 Post by hakar »

how to make Puppy 4.2 to use the Linux-swap partition, the partition is (512 MB) as sda2 is mounted by Puppy but unused. 'Conky System Monitor' shows on 0 !! use

User avatar
Aitch
Posts: 6518
Joined: Wed 04 Apr 2007, 15:57
Location: Chatham, Kent, UK

#32 Post by Aitch »

Hakar

If you have reasonably large ram it may not get used unless you are doing something intensive, like compiling or video editing,

or maybe just conky not displaying it

I have 1 Gb ram and it's split between virtual puppy 214x9 and xp, I am on here, listening to CD, browsing with several tabs open, and it's still not using swap, as shown in Htop

Aitch :)

PaulBx1
Posts: 2312
Joined: Sat 17 Jun 2006, 03:11
Location: Wyoming, USA

#33 Post by PaulBx1 »

Use the "free" command in a console window.

gcmartin

Puppy Swap File Questions

#34 Post by gcmartin »

Does Puppy "automatically" look for and know to use a SWAP partition on disk when he's running from LiveCD?

User avatar
rjbrewer
Posts: 4405
Joined: Tue 22 Jan 2008, 21:41
Location: merriam, kansas

Re: Puppy Swap File Questions

#35 Post by rjbrewer »

gcmartin wrote:Does Puppy "automatically" look for and know to use a SWAP partition on disk when he's running from LiveCD?
Yes

Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Eeepc 8g 701, 900Mhz, 1Gb ram.
Full installs

hakar
Posts: 7
Joined: Sat 10 Oct 2009, 08:56

#36 Post by hakar »

Aitch,
my machine is a Pentium II 350 MHz owerklock 392 MHz, 131 MB of RAM only :cry: .
PaulBx1 - big thanks, but there's nothing like the console, Puppy started using the SWAP partition, instead of using the command swapon -a / dev/sda3 :!: , But reluctant to use it (488kB) - Puppy is great :D - now all about
Conki shows the use of swaps in the subtitles is not a bar graphic.

Thanks again for your prompt assistance and interest

User avatar
Aitch
Posts: 6518
Joined: Wed 04 Apr 2007, 15:57
Location: Chatham, Kent, UK

#37 Post by Aitch »

hakar,

can you post the result of menu/system/xproc/memory?

and in gparted, does the swap partition show as FS type 82?

Is not using the swap partition actually causing a problem, or is this a conky thing??

If it IS a swap thing, you could try a swapfile, to test it

You can use a regular file in an ordinary partition. All you have to do is create a file of the size you want

Code: Select all

dd if=/dev/zero of=/var/pupswap,swp bs=1024 count=131072
and activate it
mkswap -f /var/pupswap.swp
swapon /var/pupswap.swp
This invocation creates a file called pupswap.swp in /var.
It is 128 Mb long (128 x 1024 = 131072). Initially, it is filled with zeros. However, mkswap marks it as swap space and swapon tells the kernel to start using it as swap space.
When you are done with it,

Code: Select all

swapoff /var/pupswap.swp
rm /var/pupswap.swp
I believe that should work, though I haven't tried it, as I'm using virtual puppy and don't need it
I used /var as I'm not sure of your install type
- it maybe should be root...?

Better yet, see Bruce B's method here, as there seems some doubt about it, and whether puppy will create it

http://www.murga-linux.com/puppy/viewtopic.php?t=36856

good luck

Aitch :)

hakar
Posts: 7
Joined: Sat 10 Oct 2009, 08:56

#38 Post by hakar »

Aitch thanks :wink:
You're right in a previous post. The puppy is doing well from memory. SWAP is used only as really needed. Conky good, but how little Puppy uses SWAP is not visible in a graphical bar :oops: . I ran many programs (browser, java, convert mp3, photo viewer) Puppy benefited from SWAP (4%), John M. knew what he was doing, and I will not Puppy be corrected on this.

Yours and thanks for the quick response

svgt
Posts: 113
Joined: Wed 26 Mar 2008, 17:18
Location: Hamburg, Germany

How to move the swap partition?

#39 Post by svgt »

I want to change the position of the swap partition. Under a puppy live-cd the gparted refuses to swapoff the partition.

In which way is it possible to swapoff this partition? Booting with pfix=ram was no solution.

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#40 Post by Béèm »

With the swapoff command
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

svgt
Posts: 113
Joined: Wed 26 Mar 2008, 17:18
Location: Hamburg, Germany

#41 Post by svgt »

swapoff is rejected with error code.

I managed it with another noname linux rescue cd. There swapoff was possible.

Post Reply