LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-07-2010, 07:24 AM   #1
nagavinodh
Member
 
Registered: Aug 2009
Posts: 118

Rep: Reputation: 15
swap space


Hi,

While booting the machine,the system seems hang due to enabling swap space.
We installed red hat 4.2 in vmware (windows xp).

[root@perf1 /]# swapon -s
Filename Type Size Used Priority
/swapfile2 file 2867592 152600 -1
/dev/sda2 partition 2867592 0 -2

[root@per1 /]# cat /proc/swaps
Filename Type Size Used Priority
/swapfile2 file 2867592 152572 -1
/dev/sda2 partition 2867592 0 -2

[root@per1 /]# free -m
total used free shared buffers cached
Mem: 1170 706 463 0 1 254
-/+ buffers/cache: 450 719
Swap: 5600 148 5451

[root@per1 /]#

[root@per1 /]# cat /proc/meminfo
MemTotal: 1198340 kB
MemFree: 471512 kB
Buffers: 1808 kB
Cached: 260996 kB
SwapCached: 4556 kB
Active: 666508 kB
Inactive: 13748 kB
HighTotal: 294848 kB
HighFree: 6592 kB
LowTotal: 903492 kB
LowFree: 464920 kB
SwapTotal: 5735184 kB
SwapFree: 5582660 kB
Dirty: 368 kB
Writeback: 0 kB
Mapped: 655860 kB
Slab: 22232 kB
Committed_AS: 2554848 kB
PageTables: 11128 kB
VmallocTotal: 106488 kB
VmallocUsed: 5512 kB
VmallocChunk: 100776 kB
HugePages_Total: 0
HugePages_Free: 0
Hugepagesize: 4096 kB

[root@perf /]# fdisk -l

Disk /dev/sda: 17.1 GB, 17179869184 bytes
255 heads, 63 sectors/track, 2088 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1731 13904226 83 Linux
/dev/sda2 1732 2088 2867602+ 82 Linux swap


whenever boot the machine we faced it.please anyone help me out that.
 
Old 04-07-2010, 07:41 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Do you mean RedHat Enterprise 4.2?

You have not posted anything to describe what exactly happens during boot up.

/proc/meminfo is showing a total swap value that seems to match the sum of your swap partition and the swapfile. Did you specifically (intentionally) create both of these?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to reduce swap space and reclaim the space grantm Linux - Newbie 7 08-16-2012 08:05 AM
swap file or swap space? simonb1975uk Linux - General 11 08-15-2008 03:39 PM
swap space (or) swap file yusufs Linux - Newbie 8 07-17-2008 03:02 AM
how much swap space is needed; how to increase swap space? johnpaulodonnell Linux - Newbie 5 03-23-2007 04:20 AM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 02:23 AM


All times are GMT -5. The time now is 05:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration