Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED][Weird SWAP]Size allocate and used different !
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ade05fr
Apprentice
Apprentice


Joined: 18 Sep 2006
Posts: 281

PostPosted: Wed Apr 15, 2009 7:46 pm    Post subject: [SOLVED][Weird SWAP]Size allocate and used different ! Reply with quote

Hi

i have recently noticed with top command line that my swap size is around 500 Mb But in reality with cfdisk i have allocated 1Gb.
Its very strange because previously i have to create a addon swap to increment this 500mb up to 1,5 Gb.

can someone explain me this problem ?
For me top must show me 1Gb ....

thanks a lot
ade05fr :o
_________________
[LAPTOP]
DELL Inspiron 5110
i5-2450M CPU @ 2.50GHz
[LINUX-GENTOO]
Gentoo 2018-0
kernel 5.0.6
gnome 3.30


Last edited by ade05fr on Thu Apr 16, 2009 5:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Wed Apr 15, 2009 8:08 pm    Post subject: Reply with quote

Please post the output of these commands:
Code:
/sbin/swapon -s
dmesg | grep swap
cat /proc/partitions

_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
Gentelman
n00b
n00b


Joined: 16 Apr 2009
Posts: 3

PostPosted: Thu Apr 16, 2009 10:00 am    Post subject: [Weird SWAP]Size allocate and used different ! Reply with quote

If you get an error detailing insufficient swap, allocate more ... However, the
biggest amount of swap I've ever used is around 500mb. .... We carried it over
to Unix and never had any weird problems that we might otherwise have suspected
memory on ... The swap size can be different for every user
_________________
Gay Dating boutique erotique
Back to top
View user's profile Send private message
ade05fr
Apprentice
Apprentice


Joined: 18 Sep 2006
Posts: 281

PostPosted: Thu Apr 16, 2009 4:20 pm    Post subject: Reply with quote

here it is very strange....

Code:

hallap ade05fr # swapon -s
Filename            Type      Size   Used   Priority
/dev/sda5                               partition   514040   0   -1
hallap ade05fr # dmesg | grep swap
[   22.065030] Adding 514040k swap on /dev/sda5.  Priority:-1 extents:1 across:514040k
hallap ade05fr # cat /proc/partitions
major minor  #blocks  name

   8        0  117220824 sda
   8        1      48195 sda1
   8        2   18852246 sda2
   8        3          1 sda3
   8        5    1076323 sda5
   8        6    5116671 sda6
   8        7   54139018 sda7
   8        8    2064321 sda8
   8        9   11245468 sda9
   8       10    5116671 sda10
   8       11   15358108 sda11
   8       12    1028128 sda12

_________________
[LAPTOP]
DELL Inspiron 5110
i5-2450M CPU @ 2.50GHz
[LINUX-GENTOO]
Gentoo 2018-0
kernel 5.0.6
gnome 3.30
Back to top
View user's profile Send private message
ade05fr
Apprentice
Apprentice


Joined: 18 Sep 2006
Posts: 281

PostPosted: Thu Apr 16, 2009 5:11 pm    Post subject: Reply with quote

solved :

in my /etc/fstab i had
/dev/sda5 swap swap defaults 0 0

instead of
/dev/sda5 swap swap sw 0 0

now everything is fine (after a swapoff, mkswap and swapon)
_________________
[LAPTOP]
DELL Inspiron 5110
i5-2450M CPU @ 2.50GHz
[LINUX-GENTOO]
Gentoo 2018-0
kernel 5.0.6
gnome 3.30
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2719
Location: here, there or in transit

PostPosted: Thu Apr 16, 2009 5:45 pm    Post subject: Reply with quote

ade05fr wrote:
solved :

in my /etc/fstab i had
/dev/sda5 swap swap defaults 0 0

instead of
/dev/sda5 swap swap sw 0 0

now everything is fine (after a swapoff, mkswap and swapon)
Just so you know, mkswap fixed your problem, not the change to /etc/fstab. Only the noauto mount option has an effect for swap partitions. Other options are ignored. (Also, per man fstab, the second field (fstype) should be none.)

Did you recently rearrange your partitions and/or resize your swap partition? I notice your signature reads:
Quote:
120 GB HDD
1 Gb DDR2
SWAP : 500Mb
Chipset Intel 945PM Express
...which suggests you originally had a 500MB swap partition and forgot to re-run mkswap when you enlarged it.
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum