Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 20 Jun 2013, 06:08
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How does Puppy work NOW?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [11 Posts]  
Author Message
cichlasoma

Joined: 12 Sep 2009
Posts: 69

PostPosted: Fri 25 Sep 2009, 14:09    Post subject:  How does Puppy work NOW?  

Hi.
From what I've found about changes made in Puppy 4 (and Puppy 3), it seems to me, Barry's text How puppy works (http://www.puppylinux.com/development/howpuppyworks.html) written on Puppy 2 together with his release notes to Puppy 3.0 mentioning "minor" improvements to the system should give a correct overall picture of how frugal install of Puppy 4.2 and 4.3 still works with RAM, drives and savefiles.
Am I not mistaken that no substantial changes took place on this field? What interests me especially - is it still true that Puppy cannot clear RAM by flushing into a savefile when it's getting full without reboot?
c.
Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3033
Location: Oregon

PostPosted: Sat 26 Sep 2009, 18:11    Post subject:  

Since Puppy was originally made to run from ram, all files installed and in the pupsave file are loaded into ram as far as possible.
Flushing changes to the Pupsave file as you put it, will not remove them from ram.
When I download a pet, or compressed file or a picture or whatever, I usually save it to /mnt/home.
That way, my pupsave file does not increase in size as fast.
Also, you can increase the size of your pupsave file so that more space is available in it after a reboot.
That option is in the menu.
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6201
Location: Auckland, New Zealand

PostPosted: Sat 26 Sep 2009, 22:09    Post subject:  

Quote:
Since Puppy was originally made to run from ram, all files installed and in the pupsave file are loaded into ram as far as possible.

Don't quote me on it, but I think that only applies for a frugal install on a usb flash drive, and even then it probably doesn't extend to .sfs addons.

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Sun 27 Sep 2009, 02:16    Post subject:  

@cichlasoma: I don't know. Sorry.

@8-bit: No official Puppy ever copies things that are already in the pup_save.2fs file into ram. The closest thing to an exception is when the pup_save.2fs file is on a Flash-based drive. In that case, the things that are initially in the pup_save.2fs file are left there. The new things added/changed during that session are held in RAM. But during the next session, those things will be read off the drive (unless they get modified).

The only things that Puppy copies into ram are the kernel, the initrd.gz file, and the pup_xxx.sfs file. And the latter is optional. No other .sfs files are ever copied into ram. Only pup_xxx.sfs.


I applied the "official" qualifier above because I know there were at least a couple experimental Puppies that did load the pup_save.2fs file (or at least the data within) into ram. I wrote one of them, and I think Hairy Will wrote the other. And there may be more floating around out there.

But no official Puppy or even CE did that. But it remains a common misconception.

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send private message Visit poster's website 
cichlasoma

Joined: 12 Sep 2009
Posts: 69

PostPosted: Sun 27 Sep 2009, 06:55    Post subject:  

Pizzasgood & others: Thanks! (I realize, my question about flushing RAM into savefile in "frugally installed" Puppies makes sense only in case of frugal installs on flash disks as in case of a HD frugal installation, changes to the savefile are written directly into the savefile...)
Pizzasgood wrote:
The only things that Puppy copies into ram are the kernel, the initrd.gz file, and the pup_xxx.sfs file. And the latter is optional.

How can one make an option as for pup_xxx.sfs file?
I know, the boot option pfix=ram should force loading into RAM disabling working with any savefiles at the same time. How to force loading of the pup_xxx.sfs file into RAM without disabling the latter? Isn´t it loaded by default when there is enough RAM?
Back to top
View user's profile Send private message 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Sun 27 Sep 2009, 16:23    Post subject:  

It depends on the version of Puppy and how much ram you have. In the old days, if Puppy decided you had enough ram it would automatically be loaded. If you didn't, it wouldn't. (The specific amount changed over time as Puppy got larger.)

Then around 4.x, Barry changed things several times. He added a pfix=noram option to disable copying the pup_xxx.sfs file to ram. Then he removed that option and added some code that would consider the speed of the drive and only load to ram if Puppy believed the drive was speedy enough to not make a big impact on the boot time (speediness was determined by drive type, e.g. a usb drive is considered slow while an internal harddrive is considered fast). Somewhere along the way he added a pfix=copy option to instruct Puppy to load the pup_xxx.sfs file even if it's on a slow drive (unless there isn't enough ram). Then he was persuaded to reimplement the pfix=noram option, but he didn't put it all the way back so Puppy still overrides it in certain circumstances (I forget what types of circumstances).

It's been a while since I've really poked around in the init scripts so I'm hazy on the details of all that. Somebody else just asked for help forcing the noram option, so I'll probably dig the scripts out later and figure out what's going on again. Right now it looks like if Puppy decides your drive is fast and you have enough ram, it will ignore your choices and load the file anyway.

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send private message Visit poster's website 
cichlasoma

Joined: 12 Sep 2009
Posts: 69

PostPosted: Sun 27 Sep 2009, 18:07    Post subject:  

Pizzasgood: Thank you!
Btw, I've come across a quite recent important Barry's statement related to my initial question about flushing memory into savefiles - http://puppylinux.com/blog/?viewDetailed=00594 . Yet, it's still not clear to me what's the state of affairs for recent Puppies (4.21, 4.3).
Back to top
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 10824
Location: The Peoples Republic of California

PostPosted: Sun 27 Sep 2009, 20:56    Post subject:  

Pizzasgood wrote:

It's been a while since I've really poked around in the init scripts so I'm hazy on the details of all that. Somebody else just asked for help forcing the noram option, so I'll probably dig the scripts out later and figure out what's going on again. Right now it looks like if Puppy decides your drive is fast and you have enough ram, it will ignore your choices and load the file anyway.


That's observable enough on my version. I like it when the user has the say so. If the user instructs noram, that's how I'd like it.

There are some sfs files I want loaded each boot. I merge these files into one sfs file. This file is much larger than the original, although I have the RAM to copy it.

A modest change in init and the user can have the choice, the question being: To copy or not to copy.

* note: things change from version to version.

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3033
Location: Oregon

PostPosted: Sun 27 Sep 2009, 23:17    Post subject:  

Pizzasgood wrote:


@8-bit: No official Puppy ever copies things that are already in the pup_save.2fs file into ram. The closest thing to an exception is when the pup_save.2fs file is on a Flash-based drive. In that case, the things that are initially in the pup_save.2fs file are left there. The new things added/changed during that session are held in RAM. But during the next session, those things will be read off the drive (unless they get modified).

The only things that Puppy copies into ram are the kernel, the initrd.gz file, and the pup_xxx.sfs file. And the latter is optional. No other .sfs files are ever copied into ram. Only pup_xxx.sfs.


.


Ok, Lets use Flash as an example. He boots Puppy from a live DVD and saves changes back to it. Or that is my understanding.
So...
If Puppy only loads the kernel and pupxxx.sfs file into a ram drive, that would tie up the DVD as to being able to access other cds and DVDs.

Taking this a step further, if one made a full hard drive install, does memory use for the OS decrease?
As an example, Windows XP has all it's files on disk and and with the OS in memory, all applications are accessed from the drive and it will run in 64 megs of memory. Not fast, but it will run.
It was always my thought that when you booted Puppy, the kernel was loaded, then the ramdisk was set up and the pupxxx.sfs was loaded into ram and then the pupsave layered in.
So......
How does it work really?
Magic Puppy?
Back to top
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 10824
Location: The Peoples Republic of California

PostPosted: Sun 27 Sep 2009, 23:28    Post subject:  

8-bit wrote:

Ok, Lets use Flash as an example. He boots Puppy from a live DVD and saves changes back to it. Or that is my understanding.
So...
If Puppy only loads the kernel and pupxxx.sfs file into a ram drive, that would tie up the DVD as to being able to access other cds and DVDs.


The multisession media doesn't have a pup_save file. It has saved sessions.

If there is sufficient RAM, it pretty well all gets copied to RAM, except /archive.

Then the drive can be freed for other tasks because it is no longer needed.

But without sufficient RAM the multisession disc is drive dependent.

So many variations, huh?

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Mon 28 Sep 2009, 23:01    Post subject:  

Quote:
Taking this a step further, if one made a full hard drive install, does memory use for the OS decrease?
Yes.

Yeah, I forgot about full and multisession. Sorry about that.

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [11 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

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
[ Time: 0.0779s ][ Queries: 12 (0.0150s) ][ GZIP on ]