LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-29-2008, 05:31 PM   #16
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129

And your swap partition should be showing up with "fdisk -l"
 
Old 09-29-2008, 08:45 PM   #17
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,377

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
As this is affecting Seamonkey as well as Firefox, I am wondering whether there is a problem with routing. Perhaps the output from route -n may be informative.
I quite happily surf the web using Firefox on a laptop with 256M of RAM and a 500M swap and the swap space is not used to any significant extent.
 
Old 09-29-2008, 11:27 PM   #18
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 365

Original Poster
Rep: Reputation: 30
Swap is usually configured automatically as part of the installation process.
I don't usually give it a second thought but you have pointed out that it is
probably not enabled.

I do recall from previous Slack versions that the swapon command usually appeared
in dmesg. It doesn't in my Slack 12.0. A swap entry also doesn't appear in fstab.

fdisk -l produces:
Code:
Disk /dev/hda: 40.0 GB, 40000000000 bytes
255 heads, 63 sectors/track, 4863 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        1279    10273536    c  W95 FAT32 (LBA)
/dev/hda2            1280        1380      811282+  82  Linux swap
/dev/hda3            1381        4008    21109410   83  Linux
So I added the following to fstab:
Code:
/dev/hda2        swap             swap        defaults         0   0
Rebooted but still did not see swap activated in dmesg.

cat /etc/mtab produces:
Code:
/dev/hda3 / ext3 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
usbfs /proc/bus/usb usbfs rw 0 0
/dev/hda1 /fat32 vfat rw 0 0
and cat /proc/swaps produces:
Code:
Filename                                Type            Size    Used    Priority
/dev/hda2                               partition       811272  0       -1
It seems to me that somewhere in rc.M there used to be an entry to enable swap but
I don't see that anymore. I just assumed that maybe HAL or UDEV somehow magically
enabled it in Slack 12.0.

I tried mkswap /dev/hda2 and swapon -a on the running system but don't know if it
is truly enabled since it still does not appear in /etc/mtab.

Is this enough information?
 
Old 09-30-2008, 12:43 AM   #19
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
The swap partition doesn't seem to show up in my mtab either. However try running this:

Code:
bash-3.1$ dmesg | grep swap
Adding 1992052k swap on /dev/sda2.  Priority:-1 extents:1 across:1992052k
If it says that, then you're good.
 
Old 09-30-2008, 09:04 AM   #20
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 365

Original Poster
Rep: Reputation: 30
While I was playing around last night, the "swapon" entry
did not appear in dmesg but swap appeared to be working
correctly as I was able to load the heavy graphics web page
with no hang. Also cat /proc/swaps also indicated usage of
approximately 40000 something.

Booted up this morning and dmesg | grep swap produced this:
Code:
Adding 811272k swap on /dev/hda2.  Priority:-1 extents:1 across:811272k
Do you know how swap is turned on in Slack 12.0? Is it udev or HAL,
because I don't see any entry in any of the rc.d startup files?

Many thanks for your help!
 
Old 09-30-2008, 09:16 AM   #21
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
See line #106 of /etc/rc.d/rc.S script
 
Old 09-30-2008, 11:14 AM   #22
raypen
Member
 
Registered: Jun 2002
Location: Midwest
Distribution: Slackware
Posts: 365

Original Poster
Rep: Reputation: 30
Thanks! I thought rc.S was single user mode. I keep forgetting that
Slackware is different.
 
Old 09-30-2008, 11:31 AM   #23
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by raypen View Post
Thanks! I thought rc.S was single user mode. I keep forgetting that
Slackware is different.
You thought right, rc.S is for single user mode. But it's always run. It goes first to single user mode, then to multi user mode.
 
Old 09-30-2008, 11:51 AM   #24
AlphaSigmaOne
Member
 
Registered: Sep 2005
Distribution: Slackware 13.1
Posts: 118

Rep: Reputation: 16
I just installed 3.0 and used Pat's package. I've noticed it takes a long time to load--not web pages, but the application itself. I don't think it's a memory problem because I have plenty to spare, but I still wonder if it's a symptom of the same problem?
 
Old 10-01-2008, 04:15 PM   #25
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 15
Posts: 700

Rep: Reputation: 43
Have you tried a new profile yet?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux shared memory segment access problem and x86 Virtual Memory layout. regmee Linux - Kernel 1 08-23-2008 12:11 AM
firefox fonts problem in Slack 12 edmundo_ba Slackware 2 07-10-2007 06:13 PM
memory problems on slack 9.0 dogbird Linux - Software 0 11-18-2005 02:02 AM
High memory usage on Slack 10 lil_drummaboy Slackware 3 11-26-2004 05:47 PM
reboot corruption memory (slack 9.1) muhkuhmasta Slackware 4 07-21-2004 02:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration