Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-09-2012, 10:02 PM   #1
Poison Nuke
Registered: Aug 2012
Location: Germany
Posts: 41

Rep: Reputation: Disabled
Swapoff -a : cannot allocate memory


suspicious problem.
I try to unmount swap i order to change partitions, but that is not possible, the error from above is shown.

~> swapoff -a
swapoff: /dev/sdb2: cannot allocate memory
swapoff: /dev/sda2: cannot allocate memory

But there is plenty of free memory

~> free -m
             total       used       free     shared    buffers     cached
Mem:          8077       2829       5247          0        796       1166
-/+ buffers/cache:        866       7210
Swap:         8205          0       8205

that is the frist time I encountered this problem and I have some similar configured systems, where all is ok.

Any ideas?
Old 08-09-2012, 11:49 PM   #2
Senior Member
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,862
Blog Entries: 36

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469

Showing /proc/meminfo is more useful. At any rate it's possible you'll find a solution in that linked thread.
Old 08-09-2012, 11:56 PM   #3
Poison Nuke
Registered: Aug 2012
Location: Germany
Posts: 41

Original Poster
Rep: Reputation: Disabled
thanx, but I already read this linked thread but nothing worked for me.

cat /proc/meminfo
MemTotal:      8271636 kB
MemFree:       5055316 kB
Buffers:        860312 kB
Cached:        1354540 kB
SwapCached:          0 kB
Active:        1262276 kB
Inactive:      1450772 kB
HighTotal:     4456448 kB
HighFree:      2559464 kB
LowTotal:      3815188 kB
LowFree:       2495852 kB
SwapTotal:     8401976 kB
SwapFree:      8401976 kB
Dirty:             952 kB
Writeback:           0 kB
AnonPages:      498200 kB
Mapped:         166600 kB
Slab:           451340 kB
PageTables:      16788 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:  12537792 kB
Committed_AS:  2841668 kB
VmallocTotal:   245752 kB
VmallocUsed:     26636 kB
VmallocChunk:   218952 kB
HugePages_Total:     0
HugePages_Free:      0
HugePages_Rsvd:      0
Hugepagesize:     2048 kB


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
[SOLVED] how to allocate dynamic memory to shared memory golden_boy615 Programming 7 04-25-2018 02:34 PM
Cannot allocate memory sha_neb Linux - Software 1 05-03-2011 05:22 PM
Cannot allocate memory simha Linux - Newbie 4 01-23-2008 09:19 AM
Cannot allocate memory Terroth Linux - General 13 02-09-2005 05:22 AM
allocate more memory? sockknitter Debian 3 11-06-2004 05:23 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:02 AM.

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