Does Pup always run in RAM?

Booting, installing, newbie
Post Reply
Message
Author
dw
Posts: 9
Joined: Wed 01 Jun 2005, 08:19

Does Pup always run in RAM?

#1 Post by dw »

I've installed Puppy to a CF card in an adapter using the built-in installation routine - and I suddenly have lots of available memory showing in the toolbar compared with when I was running off a smaller USB stick. I'm concerned that I'm no longer running in RAM, and might be paging to the CF card. Can someone reassure me that Puppy doesn't default to running "not fully in RAM" if it thinks you've done a hard disc install.

I don't want to trash my CF card, but actually everything about Puppy is so beautifully worked out that I can't believe this is a problem.

BTW - as you all know already, Puppy is unbelievebly fantastic!. I have it set up on a silent PC (Epia ML6000, silent PSU, CF instead of hard disc) and I finally get to keep my PC on all day without annoying the family!

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#2 Post by Dougal »

You'll have to give us some info here... try looking at the file /etc/rc.d/PUPSTATE and see what PUPMODE is.

The output of the commands "mount" and "df" can also be good...
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#3 Post by GuestToo »

I suddenly have lots of available memory showing in the toolbar
as far as i know, the memory applet on the JWM toolbar is showing the amount of free space in the Puppy save file ... not the free space in ram

if you type:

df -h | grep rw

it will tell you the free space you have in the save file ... it will probably be the same value shown by the toolbar applet

of course, if you run Puppy completely in ram, with no save file, it will be showing the free space in the "save file" which will actually be ram

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#4 Post by GuestToo »

by the way, if you want to know how much free ram you have, the answer should usually be "very little"

the kernel's memory manager should try to make as much use of your ram as possible, using the free space for buffers and for caching if for nothing else ... there is no point in having ram if it is not being used

you can see how much free ram you have by typing free

User avatar
Gn2
Posts: 943
Joined: Mon 16 Oct 2006, 05:33
Location: virtual - Veni vidi, nihil est adpulerit

#5 Post by Gn2 »

Hi G2

Nothing to grep Re your suggestion

Did give pause to wonder about alternatives 'tho

less /proc/sys/vm/lowmem_reserve_ratio > returns value - but uncertain how to interpret !
(Grepping is denied - likely as cannot grep self)
AFAICS it gives values in MB ?

http://groups-beta.google.com/group/fa. ... 408d84c546

Any thoughts ?

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#6 Post by GuestToo »

if you run from a cd or a frugal install, unless you are running only in ram with no save file, Puppy will probably have a save file mounted on /initrd/pup_rw ... the taskbar applet would show how much space is in the save file, mounted on /initrd/pup_rw

if you are running in ram with no save file, or if you are running as mulitsession cd/dvd, it will be different ... the amount of space you have to store files is dependent on how much ram there is ... probably virtual ram, if you have a swap file or partition

if you have a full, normal install, the amount of space you have to save files will be the free space left in the partition ... i think that is what the applet will display in that case

if you right click the memory applet, you can click "Help, What Does This Mean?" for an explanation of what is being displayed

as for lowmem_reserve_ratio, i think it keeps a little ram free in case something like an interrupt routine or driver needs it ... better than having the system crashing because there is no space left

on my machine, it seems to keep about 5 megs in reserve ... i don't have problems with the system crashing, so it seems to be adequate ... there doesn't seem to be much documentation if anyone wants to try tweaking the settings

the kernel usually keeps a small percentage of the hard drive space free, so configuration data and logs etc etc can be saved ... but that does not apply to root ... if you run as root (and Puppy does, so far anyway), it does not keep any reserve space on the hard drive ... so it's possible to fill the save file so that there is no free space to save configuration data ... this could cause the os to crash, so far, i haven't had much of a problem if it happens, i just delete something and continue what i was doing

User avatar
Gn2
Posts: 943
Joined: Mon 16 Oct 2006, 05:33
Location: virtual - Veni vidi, nihil est adpulerit

#7 Post by Gn2 »

Thank you for taking the time to explain all above info (Esp Re PUPPY)

Asides: Found this - Can already hear my wheels just a spinnin' & aslippin'... as if I :roll: Gnu where I wuz going ?
:wink: I ~ have no solution - but sure admire the problems


( ab alloc apptrace autoload bash)

http://www.google.ca/search?hl=en&ie=IS ... arch&meta=

dw
Posts: 9
Joined: Wed 01 Jun 2005, 08:19

RAM usage

#8 Post by dw »

I think I understand what freememapplet does now - thanks.
Here's my rc.d/PUPSTATE:

PUPMODE=13
PDEV1='hda1'
DEV1FS='msdos'
PUPSFS='pup_211.sfs'
PUPSAVE='msdos,hda1,/pup_save.3fs'
PMEDIA='ideflash'
SATADRIVES=''

Mount and df are less easy for a newbie to understand....

sh-3.00# mount
/dev/root on /initrd type ext2 (rw,nogrpid)
/dev/hda1 on /initrd/mnt/dev_ro1 type msdos (rw,noatime,fmask=0022,dmask=0022,codepage=cp437)
/dev/loop0 on /initrd/pup_ro2 type squashfs (ro,noatime)
/dev/loop1 on /initrd/pup_ro1 type ext3 (rw,noatime,data=ordered)
tmpfs on /initrd/pup_rw type tmpfs (rw)
none on / type unionfs (rw,dirs=/initrd/pup_rw=rw:/initrd/pup_ro1=ro:/initrd/pup_ro2=ro,debug=0,delete=whiteout)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw)
none on /sys type sysfs (rw)
none on /proc/bus/usb type usbfs (rw)
sh-3.00# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 2869 2590 279 90% /initrd
/dev/hda1 499672 491480 8192 98% /initrd/mnt/dev_ro1
/dev/loop0 77504 77504 0 100% /initrd/pup_ro2
/dev/loop1 397554 49517 327511 13% /initrd/pup_ro1
tmpfs 111768 1736 110032 2% /initrd/pup_rw
none 586824 128756 437540 23% /

df -|grep rw does indeed give the same answer as the toolbar,
and free tells me taht about 75% of my RAM is in use.

SO can anyone tell me if any of that answers my question about the CF card - how many pupmodes are there, and which one is 13?!

THanks so far, BTW

User avatar
Gn2
Posts: 943
Joined: Mon 16 Oct 2006, 05:33
Location: virtual - Veni vidi, nihil est adpulerit

#9 Post by Gn2 »

how many pupmodes are there, and which one is 13?
Below explains Pup modes:

http://www.puppyos.com/development/howpuppyworks.html

Code: Select all

man df  (& man mount)
>Are built-in Linux command line aids - "may" be a little help -
Cheer up, takes time but several Puppy forums have many useful friendly guidelines for us all.


HTH

dw
Posts: 9
Joined: Wed 01 Jun 2005, 08:19

#10 Post by dw »

i followed the link above, and although i understood about 0.1% of it, it was very reassuring about my flash disk! Which answers my original question, so thanks. :D

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#11 Post by Dougal »

You're ok, dw.

PUPMODE=13 means that you're working in a tmpfs and your flash drive is being written to only once every half hour (or whatever that period is)
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

Post Reply