LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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, 11: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-10-2012, 12:49 AM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,861
Blog Entries: 36

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
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-10-2012, 12:56 AM   #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


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 03:34 PM
Cannot allocate memory sha_neb Linux - Software 1 05-03-2011 06:22 PM
Cannot allocate memory simha Linux - Newbie 4 01-23-2008 10:19 AM
Cannot allocate memory Terroth Linux - General 13 02-09-2005 06:22 AM
allocate more memory? sockknitter Debian 3 11-06-2004 06:23 PM

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

All times are GMT -5. The time now is 10:28 PM.

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