Verify that swap is being used by Pup? Ok, sortof solved.

Booting, installing, newbie
Message
Author
Takilla
Posts: 53
Joined: Fri 28 Oct 2005, 22:19
Location: Lakeside and Phoenix, Arizona

swap

#16 Post by Takilla »

Thanks Guest, I just did the edit, reboot and confirmed that it successfull saved in the re.local. I then looked in MUT and the swap is flaged 'Use Swap'. I did two reboots.

It should read 'Swap Off", correct? then it appears that there may be a bug preventing auto swap activation???

Any feedback?

Thanks

raffy
Posts: 4798
Joined: Wed 25 May 2005, 12:20
Location: Manila

swapon

#17 Post by raffy »

This should be what you see inside rc.local (in /etc/rc.d):

swapon /dev/hda6

(no more, no less :) )

Check, too, that the file is rc.local in the directory /etc/rc.d

You can just go to the directory and right-click on the file then "Open as text". Edit then save. Then reboot.

PS - Your project is laudable - I will start a topic about it at puppylinux.org/home.

Sage
Posts: 5536
Joined: Tue 04 Oct 2005, 08:34
Location: GB

#18 Post by Sage »

Some straightforward misunderstandings going on here.
The messages Use Swap & Swap Off are just toggles in MUT. Click it and it changes! Try it. However, the terminology is highly misleading. As I understand it, if Use Swap is showing, then swap is ON - you have it, everything is working properly. If you replay the boot start-up statements in console (dmesg???) you will be able to read that swap was switched on automatically, as outlined by ??; if you're at all unsure, issue swapon -a, as I suggested earlier - then you can check MUT to see if anything changed.
If I am incorrect, Ian, raffy, MU, Bruce and the lads will soon correct me!

Takilla
Posts: 53
Joined: Fri 28 Oct 2005, 22:19
Location: Lakeside and Phoenix, Arizona

#19 Post by Takilla »

Yes, in etc/rc.d/rc.local the entries are
(first 3 were already present)

#this file called from rc.local0
#you can edit this file
#when fire wall is installed, will append line to this file
#swapon /dev/hda6 (my edit)

After boot MUT indicates swap w/ (in light blue) 'Use Swap'

My presumption has been that 'Use Swap' is a toggle to turn the swap on and 'Swap Off' is a toggle to turn swap off. But what you suggest is the opposite and that once I had done the 'mkswap', 'swap -a' and 'swapon' commands then swap was being mounted at boot.

So when MUT indicates 'Use Swap' just after boot then swap has been automounted? Right?

There was a suggestion from another poster that the problem, if indeed there is one, may lie in the new 1.0.6 rc.sisinit file. But one thing at a time.

Thanks for your help folks.

Guest

#20 Post by Guest »

if there is a # at the beginning of the line, it won't do anything, anything after a # is a comment

swapon /dev/hda6
will mount your swap partition

#swapon /dev/hda6
will do nothing

Takilla
Posts: 53
Joined: Fri 28 Oct 2005, 22:19
Location: Lakeside and Phoenix, Arizona

#21 Post by Takilla »

Yes, you are quite right Guest. I made adjustment in rc.local, removed the # and finally got a change in MUT-
And this is what I discovered:(many boots switching back and forth between swapon and swapoff in rc.local)

'swapon' in rc.local=a swap flag/toggle 'Swap Off' in MUT

and correspondingly:

'swapoff in rc.local = 'Swap On' in MUT,

indicating that the toggle for the 'swap' in MUT is a "command" button-
meaning clicking 'Swap Off' turns an active swap off and clicking 'Swap On' turns an inactive swap on.

Do you agree?

Thanks again for your help. I have gained a substantial degree of mastery the past few days from the help from the various puppy posters.

Soon I will give a small report on how booting a machine below 55 degrees F can give a false Grub error 18.javascript:emoticon(':o')

raffy
Posts: 4798
Joined: Wed 25 May 2005, 12:20
Location: Manila

Correct

#22 Post by raffy »

That's correct, Takilla.

The lesson here is - see what one character (#) can do :roll:

:)

Sage
Posts: 5536
Joined: Tue 04 Oct 2005, 08:34
Location: GB

#23 Post by Sage »

I'm sure all that you guys are correct, but the whole thread has me totally confused. Before I edited rc.local to include swapon /dev/hdax, the boot list contained an item suggesting that swap was auto-mounted and MUT showed a toggle between Use Swap & Swap Off. Now, it shows swap and boxed Swap Off.
Does that mean that, previously, my swap had NOT been in use?

It would be very helpful if one of our beloved moderators could either reorganise this entire thread (feel free to delete anything I said, I'm an outsider!) and/or produce a Simple Guide that can be called from the forum heading. Perhaps BK could make what must be quite trivial coding mods. to incorporate swap activation. It is my view that, despite the history of Puppy as a live CD, its application to resurrecting old kit now transcends those original intentions, making an invaluable contribution to waste reduction, recycling and landfill avoidance.

Takilla
Posts: 53
Joined: Fri 28 Oct 2005, 22:19
Location: Lakeside and Phoenix, Arizona

#24 Post by Takilla »

The last line in my boot entry now is "adding swap...."

MUT indicates swap and Swap Off [boxed]. I had not noticed until you pointed out the box. As in all other boxed words in MUT(check them out) a box is a "button" ,or toggle, to click to do the action indicated by the word, i.e. Scan, Rox, Swap Off, Close and Eject. All have boxes. When swap, like root /, is unboxed it indicates the current condition, when you click a boxed Swap Off a boxed Swap On appears in it's place(no more swap), as the button to turn swap back on.

It appears that your swap has been off, unless there is another auto swap that we do not kow about.

I wholeheartedly agree with you about the importance of getting these older machines back in action. Have you any idea how much oil was used to produce these computors? they are still good and it is highly irresponsible to throw them away for the sake of short term profits(gotta pay the bankers). As an american (Texas national) I have seen, more than most, the absurdity of the throw away society. It makes me sick to see this condition, and if these folks that develop the mini-live CDs, puppy and others, especially slax, would also develop a pure install like so many people are wanting, then that would contribute significantly to reduce waste and save some energy from making new machines uneccessarly.

raffy
Posts: 4798
Joined: Wed 25 May 2005, 12:20
Location: Manila

New topic

#25 Post by raffy »

This discussion seems appropriate for another topic, so I created one there. Hope you and Sage can visit that thread :)

Sage
Posts: 5536
Joined: Tue 04 Oct 2005, 08:34
Location: GB

#26 Post by Sage »

OK, but let's not lose all these gems about swap creation, formatting and activation. They need collation. The point is that Barry's masterpiece has priceless, if unintended, spin-off. His implementation of ramdisk, efficiently coded apps, yielding unprecedented speed, can be transferred onto old hardware. This also meets with his stated strategies. We haven't heard from the guru, in person, yet.

Takilla
Posts: 53
Joined: Fri 28 Oct 2005, 22:19
Location: Lakeside and Phoenix, Arizona

#27 Post by Takilla »

0000000000000000

See Puppy Power

Scorch

#28 Post by Scorch »

I'd like to chime in here... for me simply creating the swap file (logical hda5) and formatting it with a console command...

mkswap /dev/hda5

was ALL I had to do. The swap partition is mounted and enabled with each reboot according to the MUT. I did NOT have to use swapon or edit the rc.local file at all.

PIII 500Mhz, 2GigHD, 160Meg

kethd
Posts: 451
Joined: Thu 20 Oct 2005, 12:54
Location: Boston MA USA

#29 Post by kethd »

I'd like to challenge assuming a P-II computer is underpowered; I'd say that faster computers are over-powered for most normal uses. And a 1GB hard drive is a very large playfield from the point of view of Puppy.

Swap may not make things faster; in general using swap makes things slower. The value of swap is that it makes it possible to do things that can't be done otherwise, with limited real ram. But try your real applications first with no swap. If you can do what you need to do, you might be better off without swap. (Also, if you are messing with multiple drives, consider putting the swap on a separate physical drive for maximum speed. But multiple drives increases your power consumption, so again make sure you are really getting some benefit from the added complication.)

How much ram do these computers you are trying to rescue have? Memory is pretty cheap these days, and a PII should be able to easily accomodate some cheap 128-256MB memory, plenty for Puppy to do lots of tricks.

I've never used swap, and obviously the MUT icons are a source of confusion that should be improved... In general Partview seems like a good tool to quickly view all mounted partitions.

raffy
Posts: 4798
Joined: Wed 25 May 2005, 12:20
Location: Manila

Live CD and No Swap

#30 Post by raffy »

Thanks for the suggestion, ketd, yes, if you can add more memory, that will be a better solution than use of swap partition.

Scorch, you must be using live CD. Puppy installed to hard disk behaves differently (it does not use swap automatically).

ninjabob7

#31 Post by ninjabob7 »

Can't you just type mount and see if swap is mounted? Or does that only work on certain distributions?

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

#32 Post by GuestToo »

mount will show you what /etc/mtab thinks is mounted ... if your swap partition is not mounted from /etc/fstab, then it will not show up when you type mount

Sage
Posts: 5536
Joined: Tue 04 Oct 2005, 08:34
Location: GB

#33 Post by Sage »

It's a brave soul who can claim any technical or scientific issue as 'SOLVED'! I would not advocate the use of this term in ANY context associated with computers, and would certainly suggest it be removed from the present thread by the moderators, forthwith!

kethd
Posts: 451
Joined: Thu 20 Oct 2005, 12:54
Location: Boston MA USA

#34 Post by kethd »

(I have been taken the appending of labels such as SOLVED to indicate that herein you might actually find answers to the problem mentioned, not just a discussion among the equally affflicted and suffering.)

I guess I do feel it should imply that there are not only answers, but that they actually worked -- and preferably that the person with the original problem thinks their problem is solved/resolved. (I haven't read this thread closely enough to have an opinion in this instance.)

Takilla
Posts: 53
Joined: Fri 28 Oct 2005, 22:19
Location: Lakeside and Phoenix, Arizona

solved?

#35 Post by Takilla »

So whatś a newbee to do?

I posted

Post Reply