Thursday, September 24, 2009

[LINUX_Newbies] Re: Need more swap

 

--- In LINUX_Newbies@yahoogroups.com, J <dreadpiratejeff@...> wrote:
>
> On Wed, Sep 23, 2009 at 18:01, Andrew <andrew@...> wrote:
> > I think I need more swap space. Can I add free space to my swap partition without without destroying the
> > data partition?
>
> What makes you think you need more swap? What are teh specs on the
> system? What kind of processor, and how much RAM. And again, WHY do
> you need more swap?
>
> Keep Reading...

I think I need more swap because I appear to be running out of free memory.

vmstat 1
r b swpd free buff cache si so bi bo
1 0 457504 22116 15400 954332 0 0 0 0
0 0 457504 22116 15404 954416 0 0 88 0

root@andrew-desktop:~# free
total used free shared buffers cached
Mem: 3992768 3964224 28544 0 15916 937676
-/+ buffers/cache: 3010632 982136
Swap: 4883720 457744 4425976

CPU = AMD Phenom II
Memory = 4 GB DDR3

After looking at the output from free, perhaps I need more RAM. But I wouldn't expect an Opera browser, and World of Warcraft, and nothing else, to eat up all the RAM like that.

Andrew

==========================================

> > I have a 1.5 TB disk, with 650 GB for the OS as sda1, and a 2 GB swap partition as sda5.
> >
> > Device Boot Start End Blocks Id System
> > /dev/sda1 * 1 90593 727688241 83 Linux
> > /dev/sda2 90594 91201 4883760 5 Extended
> > /dev/sda5 90594 91201 4883728+ 82 Linux swap / Solaris
> >
> > /etc/fstab
> > # / was on /dev/sda1 during installation
> > UUID=58cbf81c-a944-4582-b04c-6245812ceeb3 / ext3 relatime,errors=remount-ro 0 1
> > # swap was on /dev/sda5 during installation
> > UUID=2b274bf9-3d42-4306-b88c-22b503f77dff none swap sw 0 0
> > /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
> >
> > I would think I would boot from the live CD, use fdisk to enlarge sda5, but I don't see an option to add space in the fdisk menu. So what tool would I use for this?
>
> parted would let you, and assuming you have the 350GB or so of
> UNALLOCATED space on that disk that it looks like you do, you could,
> theoretically at least, stop swap, resize the partition, then restart
> swap...
>
> But again, why do you think you need more swap? What are you running
> on that system.

__._,_.___
To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.
Recent Activity
Visit Your Group
Give Back

Yahoo! for Good

Get inspired

by a good cause.

Y! Toolbar

Get it Free!

easy 1-click access

to your groups.

Yahoo! Groups

Start a group

in 3 easy steps.

Connect with others.

.

__,_._,___

No comments:

Post a Comment