You are not logged in.

#1 2012-11-14 08:56:43

inquisitorthreefive
Member
Registered: 2012-11-14
Posts: 3

[SOLVED] Virtual Memory Exhausted with unused 16g Swap Partition.

Hello all, long time reader, first time poster. So basically what I'm running into is that I'm having Virtual Memory Exhausted errors with various programs even though I have a 16g swap partition mounted. I've manually enabled it to try it as well. Here's some outputs to give you an idea of how my system is set up. It's a UEFI fresh install, only a couple days old.

fstab:

#
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>       <dump>  <pass>
tmpfs           /tmp    tmpfs   nodev,nosuid    0       0
# /dev/sdb3
UUID=ea7a0311-6314-4215-b98d-7360552b28c4       /               ext4            rw,relatime,data=ordered        0 1

# /dev/sdc3
UUID=8f6f2006-3a9c-4563-a149-547d758e2af1       /home           ext4            rw,relatime,data=ordered        0 2

# /dev/sdb2
UUID=baf1ba80-ddf3-4cbb-a13e-b81a0af0a9e7       /boot           ext4            rw,relatime,data=ordered        0 2

# /dev/sdb1
UUID=2B46-5340                                  /boot/efi       vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro    0 2

# /dev/sdc1
UUID=4336d783-c289-4fbf-8c59-f1a1da782130       /var            ext4            rw,relatime,data=ordered        0 2

# /dev/sdc2
UUID=96a60f08-a57f-42f1-80ff-846d02a29199       /var/log        ext4            rw,relatime,data=ordered        0 2

# /dev/sda2
UUID=c5d5879a-b0e8-4976-8057-2f95975a1251       /share          ext4            rw,relatime,data=ordered        0 2

# /dev/sdb4
UUID=6e6277c4-a69a-4838-83cd-c206959acf0e       /store          ext4            rw,relatime,data=ordered        0 2

#swap
UUID=21a56b10-85e5-48a1-91e5-995eae0dfba4       none            swap            defaults                        0 0

lsblk

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 931.5G  0 disk 
├─sda1   8:1    0    16G  0 part [SWAP]
└─sda2   8:2    0 915.5G  0 part /share
sdb      8:16   0 931.5G  0 disk 
├─sdb1   8:17   0     1G  0 part /boot/efi
├─sdb2   8:18   0     1G  0 part /boot
├─sdb3   8:19   0    50G  0 part /
└─sdb4   8:20   0 879.5G  0 part /store
sdc      8:32   0 931.5G  0 disk 
├─sdc1   8:33   0    20G  0 part /var
├─sdc2   8:34   0     2G  0 part /var/log
└─sdc3   8:35   0 909.5G  0 part /home
sr0     11:0    1  1024M  0 rom  

cat /proc/meminfo

MemTotal:       12256600 kB
MemFree:         9926584 kB
Buffers:          212588 kB
Cached:           774636 kB
SwapCached:            0 kB
Active:          1179860 kB
Inactive:         638584 kB
Active(anon):     831604 kB
Inactive(anon):    14480 kB
Active(file):     348256 kB
Inactive(file):   624104 kB
Unevictable:           4 kB
Mlocked:               4 kB
SwapTotal:      16777212 kB
SwapFree:       16777212 kB
Dirty:                32 kB
Writeback:             0 kB
AnonPages:        831320 kB
Mapped:           196008 kB
Shmem:             14892 kB
Slab:             345008 kB
SReclaimable:     316620 kB
SUnreclaim:        28388 kB
KernelStack:        2616 kB
PageTables:        27032 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    22905512 kB
Committed_AS:    3365808 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      357936 kB
VmallocChunk:   34359373819 kB
HardwareCorrupted:     0 kB
AnonHugePages:     86016 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:      117756 kB
DirectMap2M:     4059136 kB
DirectMap1G:     8388608 kB

swapon -s

Filename                                Type            Size    Used    Priority
/dev/sda1                               partition       16777212        0       -1
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 20
file size               (blocks, -f) unlimited
pending signals                 (-i) 94832
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 94832
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

I did just notice that it's showing 4gb less RAM than there should be (12 instead of 16, I'll be checking into that about the same time I hit submit) but as far as I can tell the system shouldn't even be worried about swap 99.99% of the time. Any ideas?

Edit: On reboot system show the full 16gb of RAM.

Last edited by inquisitorthreefive (2012-11-19 07:44:32)

Offline

#2 2012-11-14 16:28:25

MadTux
Member
Registered: 2009-09-20
Posts: 553

Re: [SOLVED] Virtual Memory Exhausted with unused 16g Swap Partition.

inquisitorthreefive wrote:

I did just notice that it's showing 4gb less RAM than there should be (12 instead of 16, I'll be checking into that about the same time I hit submit) but as far as I can tell the system shouldn't even be worried about swap 99.99% of the time. Any ideas?

Edit: On reboot system show the full 16gb of RAM.

Could it be a hardware problem with RAM? Is there a 4 GB RAM chip in the machine that may have failed?

Offline

#3 2012-11-14 19:59:23

inquisitorthreefive
Member
Registered: 2012-11-14
Posts: 3

Re: [SOLVED] Virtual Memory Exhausted with unused 16g Swap Partition.

MadTux wrote:

Could it be a hardware problem with RAM? Is there a 4 GB RAM chip in the machine that may have failed?

RAM's fine. It wasn't completely seated for some reason.

Offline

#4 2012-11-19 07:42:55

inquisitorthreefive
Member
Registered: 2012-11-14
Posts: 3

Re: [SOLVED] Virtual Memory Exhausted with unused 16g Swap Partition.

Ended up just wiping it and reinstalling. Never did figure out what the deal was with the virtual memory.

Offline

Board footer

Powered by FluxBB