The time now is Thu 19 Apr 2018, 08:06
All times are UTC - 4 |
Page 1 of 3 [32 Posts] |
Goto page: 1, 2, 3 Next |
Author |
Message |
illidan.modeler
Joined: 02 Sep 2013 Posts: 35
|
Posted: Wed 11 Sep 2013, 09:49 Post subject:
Does running without swap memory hurt performance? |
|
I use my Slacko in a pen drive in various places on various computers. Some computers are without swap partitions purely machines for MS Windows. When I run Slacko on this kind of computers, will it result in poorer performance compared to one with swap partition?
_________________ Laptop1(Core i3, 2G , 320G ): Ubuntu 12.04
Laptop2(Celeron SU2300, 2G , 320G ): Lubuntu 13.04
Laptop3(Turion64 MT28, 1280M, 40G): Bodhi 2.4 with E17
External HDD1: SalixOS 14.0 with fvwm
External HDD2: Blag Linux and GNU 140k
Pen Drive: Slacko 5.6
|
Back to top
|
|
 |
gcmartin
Joined: 14 Oct 2005 Posts: 6730 Location: Earth
|
Posted: Wed 11 Sep 2013, 10:05 Post subject:
Re: does it hurt performance when unning without a swap? |
|
illidan.modeler wrote: | I use my Slacko in a pen drive in various places on various computers. Some computers are without swap partitions purely machines for MS Windows. When I run Slacko on this kind of computers, will it result in poorer performance compared to one with swap partition? | SWAP services will NOT hurt performance. Think of it as a system protection to keep the system alive as RAM use increases. This technology has been in the fore-forth of advance systems for more that 50 years. But, it is NOT required. In Linux, this can be turned on/off should anyone need. Most every PUP at boot-time will acknowledge its presence automatically, if it is present. If not, the PUP doesn't care and will still boot. And, system operations will perform normally for the user.
Hope this helps
_________________ Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engines or use DogPile
|
Back to top
|
|
 |
Karl Godt

Joined: 20 Jun 2010 Posts: 4208 Location: Kiel,Germany
|
Posted: Wed 11 Sep 2013, 10:38 Post subject:
|
|
Firefox is RAM hungry .
1GB is quite OK for most simple purposes . 2GB is very good .
When I compile large sources on my 1GB RAM machine in Full installation mode , then SWAP is seldom used and if in K sizes often .
512MB should be OK , but I would prefer SWAP then to increase RAM to 1GB .
On an old 224MB RAM machine with no HDD running Quirky-1.1live cd , Seamonkey Browser crashes when opening a second or third tab because of too low RAM .
Bugos in Apps can be RAM demanding , as I had to learn recently with the decimal point delimiter being comma in my LANG , not colon .
|
Back to top
|
|
 |
mikeb

Joined: 23 Nov 2006 Posts: 11100
|
Posted: Wed 11 Sep 2013, 10:51 Post subject:
|
|
In terms of performance running with swap being used is a slow down. But running without enough ram and no swap will cause crashes or hard lockups. If you are running on machines with 1GB+ chances are you will be fine. Apps handling large images like GIMP or an untamed browser can chomp.
Also with puppy on a flash stick ram is shared between system ram usage and the ramdisk for the virtual file system so usage is higher than a more conventional system and say adding software or storing files in /root will take up ram space.
If you did need to use your stick where ram is limited or you need more you could have a save file on the stick (or even partition it for the partition way)...a save file is as fast as a partition on modern kernels.
mike
|
Back to top
|
|
 |
illidan.modeler
Joined: 02 Sep 2013 Posts: 35
|
Posted: Wed 11 Sep 2013, 13:52 Post subject:
|
|
Thanks for your clarifications.
I noticed that Puppy will make use of the swap partition if it's present in the PC's internal HDD.
Swap will be needed when many software applications run simultaniously, in order to switch inactive process to the background and map their memory into swap area. Right?
Can I confgiure Puppy to use swap if it's avaible inside the machine, and to use a swap file if swap partition isn't available?
_________________ Laptop1(Core i3, 2G , 320G ): Ubuntu 12.04
Laptop2(Celeron SU2300, 2G , 320G ): Lubuntu 13.04
Laptop3(Turion64 MT28, 1280M, 40G): Bodhi 2.4 with E17
External HDD1: SalixOS 14.0 with fvwm
External HDD2: Blag Linux and GNU 140k
Pen Drive: Slacko 5.6
|
Back to top
|
|
 |
Karl Godt

Joined: 20 Jun 2010 Posts: 4208 Location: Kiel,Germany
|
Posted: Wed 11 Sep 2013, 13:58 Post subject:
|
|
Code: | geany /etc/rc.d/rc.sysinit |
and in the Find box type swap and hit the magnifier button to search .
_________________ «Give me GUI or Death» -- I give you [[Xx]term[inal]] [[Cc]on[s][ole]] .
Macpup user since 2010 on full installations.
People who want problems with Puppy boot frugal 
|
Back to top
|
|
 |
mikeb

Joined: 23 Nov 2006 Posts: 11100
|
Posted: Wed 11 Sep 2013, 15:31 Post subject:
|
|
Quote: | Swap will be needed when many software applications run simultaniously, in order to switch inactive process to the background and map their memory into swap area. Right? |
My understanding is Windows uses swap a bit differently and it can indeed affect performance without it.
On Linux its just extra space if the ram runs out so nothing gets 'swapped out' unless more real ram is required than free.
hope all this is helping
mike
|
Back to top
|
|
 |
gcmartin
Joined: 14 Oct 2005 Posts: 6730 Location: Earth
|
Posted: Wed 11 Sep 2013, 17:03 Post subject:
|
|
You pose a good question. illidan.modeler wrote: | Can I confgiure Puppy to use swap if it's avaible inside the machine, and to use a swap file if swap partition isn't available? | I had never considered this implementation for I've only used the OOTB support built-into many/most Linux systems.
Wondering
I have never used /setup any system where I deployed SWAP (or page for that matter) within the filesystem of the running system or its data areas.
If I understand your question, correctly, you would like the system, at boot time, to look for a swapfile when a swap partition is NOT found.
I dont know if PUPs are designed for this. And, I never implemented a swapfile on any system. Maybe PUPs are built to already automatically do this. Anyone know?
_________________ Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engines or use DogPile
|
Back to top
|
|
 |
mikeb

Joined: 23 Nov 2006 Posts: 11100
|
Posted: Wed 11 Sep 2013, 17:17 Post subject:
|
|
Ok this is from Lucid...if no swap partition then it tries to load pupswap.swp located in the root of the save drive...
Code: | #if no go, try for a swap file...
if [ "$SWAPON" != "yes" ];then
SWAPFILE="/pupswap.swp"
if [ -f /initrd${PUP_HOME}${SWAPFILE} ];then
echo -n "Loading swap file ${SWAPFILE}..." >/dev/console
swapon /initrd${PUP_HOME}${SWAPFILE}
status_func $?
[ $? -eq 0 ] && SWAPON="yes"
fi
if [ -f $SWAPFILE ];then
echo -n "Loading swap file ${SWAPFILE}..." >/dev/console
swapon $SWAPFILE
status_func $?
[ $? -eq 0 ] && SWAPON="yes"
fi
fi |
It may well still be the case for newer puppies...
heres a swap file ..extract and enjoy..its magic
http://dl.dropbox.com/u/110545536/Puppy/pupswp_512.tar.gz
mike
|
Back to top
|
|
 |
musher0

Joined: 04 Jan 2009 Posts: 12067 Location: Gatineau (Qc), Canada
|
Posted: Wed 11 Sep 2013, 17:21 Post subject:
|
|
Hello, all.
A couple of infos for the record:
1) windose has 2-3 swap files for various purposes, called
hiberfile.sys, pagefile.sys and the like. I don't know if explaining how
would be on subject, but there's a simple way for any Linux to use
pagefile.sys as a swap file.
2) at boot-up, if Puppy thinks there is not enough RAM and finds no swap file
or partition, it creates a small 256 Mg swap file, to have leg-room at
least until your pupsave file is created.
BFN.
_________________ musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
|
Back to top
|
|
 |
bigpup

Joined: 11 Oct 2009 Posts: 10288 Location: Charleston S.C. USA
|
Posted: Wed 11 Sep 2013, 23:01 Post subject:
|
|
Yes, at bootup, Puppy will automatically detect and use a swap partition or swap file that is on computer.
_________________ I have found, in trying to help people, that 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 
|
Back to top
|
|
 |
nic007

Joined: 13 Nov 2011 Posts: 2317 Location: Cradle of Humankind
|
Posted: Wed 11 Sep 2013, 23:34 Post subject:
|
|
gcmartin wrote: | You pose a good question. illidan.modeler wrote: | Can I confgiure Puppy to use swap if it's avaible inside the machine, and to use a swap file if swap partition isn't available? | I had never considered this implementation for I've only used the OOTB support built-into many/most Linux systems.
Wondering
I have never used /setup any system where I deployed SWAP (or page for that matter) within the filesystem of the running system or its data areas.
If I understand your question, correctly, you would like the system, at boot time, to look for a swapfile when a swap partition is NOT found.
I dont know if PUPs are designed for this. And, I never implemented a swapfile on any system. Maybe PUPs are built to already automatically do this. Anyone know? |
I've read somewhere on a puppy forum that puppy can utilise the drvespace.bin and pagefile.sys created by a windows installation as swap files.
|
Back to top
|
|
 |
musher0

Joined: 04 Jan 2009 Posts: 12067 Location: Gatineau (Qc), Canada
|
Posted: Fri 13 Sep 2013, 22:03 Post subject:
|
|
Hello nic007.
Here are a couple of articles I found on the subject:
http://www.linuxarticles.org/2010/10/linux-swap-space-configuration-using-file/
http://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/sharing-a-swap-file-with-linux-and-windows-109511/
(The first part in blue, the post by a Mr. Hammond)
Attached is also slaxsave.zip taken from
http://www.homesopen.com/slax6/slax-boot-usb-from-cd-6.0.1.iso.
I don't think it's distributed with the newer slax or porteus distros
anymore, but it's always handy to have around.
Watch it! Surprisingly, there are 4 sizes of swap files in there ranging
from 128 Mg to 1 Gb, so make sure you have enough room on your
support drive (especially if a USB drive) when you unzip any one of
them. I'd recommend using the 512 Mb one, which is enough for our
purposes in Puppy.
I don't use any of them anymore since I now have a very large HD
with a swap partition, but a script similar to Mr. Hammond's above
did set the swap file up and it worked fine. If you're interested I'll
dig up this old script.
Another word of caution. The drive I used it on was formatted in
fat32. These swap files will certainly work on fat32 and extX drives,
but I'm not sure if they'll work on a windose ntfs drive right off the bat,
because a ntfs drive has to be opened and maintained open with the
Linux ntfs-3g utility to be written to.
BFN.
musher0
 |
Description |
|

Download |
Filename |
slaxsave.zip |
Filesize |
11.92 KB |
Downloaded |
216 Time(s) |
_________________ musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
|
Back to top
|
|
 |
nic007

Joined: 13 Nov 2011 Posts: 2317 Location: Cradle of Humankind
|
Posted: Fri 13 Sep 2013, 23:08 Post subject:
|
|
musher0 wrote: | Hello nic007.
Here are a couple of articles I found on the subject:
http://www.linuxarticles.org/2010/10/linux-swap-space-configuration-using-file/
http://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/sharing-a-swap-file-with-linux-and-windows-109511/
(The first part in blue, the post by a Mr. Hammond)
Attached is also slaxsave.zip taken from
http://www.homesopen.com/slax6/slax-boot-usb-from-cd-6.0.1.iso.
I don't think it's distributed with the newer slax or porteus distros
anymore, but it's always handy to have around.
Watch it! Surprisingly, there are 4 sizes of swap files in there ranging
from 128 Mg to 1 Gb, so make sure you have enough room on your
support drive (especially if a USB drive) when you unzip any one of
them. I'd recommend using the 512 Mb one, which is enough for our
purposes in Puppy.
I don't use any of them anymore since I now have a very large HD
with a swap partition, but a script similar to Mr. Hammond's above
did set the swap file up and it worked fine. If you're interested I'll
dig up this old script.
Another word of caution. The drive I used it on was formatted in
fat32. These swap files will certainly work on fat32 and extX drives,
but I'm not sure if they'll work on a windose ntfs drive right off the bat,
because a ntfs drive has to be opened and maintained open with the
Linux ntfs-3g utility to be written to.
BFN.
musher0 |
Hi, musher0. Thanks. I've never used a swap file before. Running a customised version of puppy431 with Java and old WINE, save file of only 48MB, only 256MB RAM and still don't need a swap file.
|
Back to top
|
|
 |
musher0

Joined: 04 Jan 2009 Posts: 12067 Location: Gatineau (Qc), Canada
|
Posted: Sat 14 Sep 2013, 11:12 Post subject:
|
|
All right, then.
_________________ musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
|
Back to top
|
|
 |
|
Page 1 of 3 [32 Posts] |
Goto page: 1, 2, 3 Next |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|