LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

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


Hello,

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

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

But there is plenty of free memory


Code:
~> 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
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
http://www.linuxquestions.org/questi...poff-a-860137/

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
Member
 
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.


Code:
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
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:31 AM.

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
Open Source Consulting | Domain Registration