i had to install oracle in my laptop...it required a certain amount of swap space which i didnt have... i tried to create it using the datadump command... dd if=/dev/zero of=/extraswapf bs=1M count=512 i then rebooted and made the swapfile using: mkswap /extraswap i then made the entry in /etc/fstab as follows "/extraswap swap swap default 0 0" and i used the command : swapon /extraswap the swap space was visible after that... but after rebooting the swap space is not visibille
My laptop has 2Gb of ram, 4Gb of swap, 40Gb hdd and an intel pentium 1.40GHz cpu, even when compiling stuff or maxing out everything the 4Gb of swap is never touched, with such a small hdd I'd like to reduce the swap to about 2Gb (just in case) to free up some space, does anyone know what commands/tools are available to accomplish this?
Whether i am short of memory or some memory corruptions? If so, what can i do? Because i find it hard to believe this is a memory problem when i have 4GB of RAM and 6GB of swap space, and my CPU process normally don't occupied more than 30%
When i first installed ubuntu about 2 weeks i left about 30gb left for windows vista. I have not used vista at all so i decided to delete it and use the whole hard drive for ubuntu. I got the liveCD out and went into the partition editor on that (i had ubuntu,swap,vista in that order) and deleted the swap space and vista and increased the size of the Ubuntu partition to so there was only 4gb left for swap. I then booted up again from the hard drive and i get this message "one or mounts cannot be mounted" or something to that effect and it talks about the swap partition and offers to boot in recovery mode which does work.Once in recovery mode i go in and try and make swap partition with Disk Utility and i do that and it works. I go to restart Ubuntu to test it out and the same problem happens again, cannot mount swap ect. so i go back into Disk Utility and it now says 4gb Unrecognized instead of swap
a friend of mine recently installed Ubuntu in his Laptop however is running really slow. It's Dell 1520 so I don't think the computer is that slow. I think what the problem is that he doesn't have a swap space. ok, I could use GPARTED to resize the HD and create SWAP space but how can I tell the system to permanently use that space?
I have a rel 5.6 system that we just added more memory to.
1. What is the correct or best way to increase swap? 2. Can I remove the swap space later on? 3. How do you remove it when done?
Our rootvg only has 8G available to it and I want to be sure if i allocate anything out to it I can reclaim when done without having to rebuild the system.
We have to do a lot of data moves so we allocated extra memory to this VM system and now we need to increase swap. I did see several articles in google but they describe using a new swap partition, a swap file and increasing an existing swap space. I am still not sure what is the best way to go knowing this is a temp situation.
Before I start a flame war, I'd like to qualify my question with...I have a boatload of ram and a VERY thin install.(CLI openSuse 11.4-64) If I'm running the most baseline, text-only-install...and the whole system install is like 2GB or less, and I have 8GB of ram (which I could easily upgrade to 16). At install time...do I really need a swap partition at all? What purpose could a swap serve if I have that much ram in such a trimmed down environment?
I had just installed gparted , not used yet.I have a problem , at the time of installation i havent created necessary swap space , my linux partition contains 30GB with ext2 filesystem..I'm fully having this , but my question is with the above mentioned tool can I recreate swap space from this 30GB , like 20GB as user space and rest 10 as swap space . Can I?
I am currently running 32 bit ubuntu in my PC with 2.5 GB RAM, Intel Pentium Dual Core inside. I am coming to debian soon. I will be installing 64 bit squeeze. Now I have 3 GB of swap space. I do satellite image processing. Therefore what is the recommended swap space for me with the kind of work I do. RAM is in very small amount but as of now I have to stay with it.
Also I am interested to know would KDE be an overkill for my machine. Will I run short of memory when I start image processing?
When we want to setup a linux system, there is a common a suggestion like set the swap space as twice as big than your physical memory, I want to know why do we need this and how is this suggestion come from?
I have a linux server top reports about 9GB of swap used:But I cannot figure where's it use swap, some google results said that top - O commad follow by p will show swap usage by process. But as shown in the above image, taking a brief sum of the SWAP column shows that > 10GB of swap is used, so where does the 9GB figure for swap usage come from? Top reports that about 96492kb of ram is used by buffers. Is there anything I can do to utilize this, instead of using swap?
I got back to my laptop after dinner and found a blank screen with one line of text saying something about running out of swap space - I tried all kinds of key combinations but nothing worked to bring the desktop back - eventually I pressed and held the power button to shut it down - I suppose this is Ubuntu's version of the "blue screen of death"?I went to System - Disk Utility to make a 2GB free space right after the swap space. Then I tried to make that 2GB free space a swap space partition but it came back with an error
Is there any way to force the system to use swap space instead of RAM? I just upgrade form 512 to 1 gb. And when I installed ubuntu I give the swap space 1gb according to 512mb RAm requirement. Now I have 1 gb. When I use heavy applications i-e firefox, office, any game etc at a time the processing go to 100% and the RAM use 50+% of the memory. No swap memory will be use. Any way to use swap instead of RAM?
I am using a Dell Inspiron 580 that I recently recieved as a gift. I wouldn't normally purchase a Dell, but I have no money and it my old computer was WAY past it's prime. After going through a miniature nightmare I now wonder how to create swap space for my ubuntu installation. I am running 10.04, 64 bit. I am having no problems, but I have no swap space. My computer is a new -Intel i3- with 6GB of ram; so I assumed I could worry about getting it installed, then set a swap file later. As I said, it runs well, but i don't feel comfortable with ZERO swap space.
When I installed Ubuntu I already had a problem because Dell had included 2 special partitions that are diagnostic and recovery. This didn't surprise me, but I want to make my system backup less than 100GB, so I shrank the "c:" partition to 100Gb and made the free space "storage":NTFS partition. After backing everything up (before messing with the partitions), I installed Ubuntu. Since I had created the backup that Dell asked me to (the very first time I turned the PC on) as well as my own system image I wasn't concerned.
Using GParted Boot disk I deleted the Dell "Recovery" partition and marked the "C:" drive (COS)) as active. I used a Windows 7 install disk to "repair" the bootmgr problem. Had to run "repair" twice, but it worked.
My question now is: why didn't Ubuntu installation say anything about a swap partition until I had already set up my partitions? I could easily give up a gig or two for swap space but I cannot make a swap partition unless I delete the Dell diagnostic partition (NOT the "recovery" partition; the other hidden one). I don't mind deleting the "recovery" partition because it is backed up, but I would prefer not to delete the "diagnostic/utility" partition, just in case. The 40MB is crap anyway.
It hadn't occurred to me that I would have trouble making swap space. I am used to windows (I am dual booting with GRUB BTW, if that matters) and the swap FILE doesn't need it's own partition. I understand why a separate partition would be better, but unless I can somehow create a logical/extended partition for swap, I need to know what else I can do.
I believe Ubuntu is a better system for many reasons, but little things like this do puzzle me. I am no engineer, or software designer, but I don't understand why I wasn't given an option, such as: You cannot make another primary partition; would you like to use a virtual disk/file as your swap space?"
I'm a first time installer of Ubuntu. I've run it directly from CD a few times earlier, but I'm installing it from the CD for the first time. I've read some stuff about this from other sites, and have some doubts I hope you geniuses would be able to clarify. Situation : My 80GB Primary HDD is partitioned into what I think is 1 Primary partition [10GB] and 1 extended partition [70GB] which is further divided into three logical partitions.
I don't have to worry about other data, since I've got a 320GB External HDD for that. Now, Ubuntu says that it can squeeze the free space out of the Windows Partition. But my Windows partition is pretty full, and I don't want to re-install it on a larger partition. I've got one logical drive [20GB] free on my Primary HDD. Can it be converted into a primary partition without affecting anything else i.e. my Windows partition and the other two logical partitions remain intact ? Or do I have to format my extended partition and subdivide into a primary and extended partition ?
Q2 - How do I adjust swap space ? Does it have to be a primary partition ? Or can it be a logical partition ? To make a logical partition swap space, do I have to reformat my entire extended partition to squeeze out free space, or can it be kept intact? I'm using Ubuntu Hardy Heron. I know it's a lot to read, but I'm pretty confused right now.
For some reason, if I leave my Linux box running for several days, the swap space and RAM slowly fill up until my system is so slow that it takes around 15 seconds just to open a new tab if Firefox (Iceweasel, specifically). I have 512GB RAM and almost a gig of swap; how on earth does it fill up so much? Even if I close all my programs, there's still over 600MB swap used and all RAM is full. I've included a screenshot of 'top' running just about two minutes after I closed all my running programs.
(Before I closed it, I had only 71MB swap free.) I know that Linux is supposed to make good usage of RAM, but isn't this over the top? Is there a way to force it to use only required memory with no or little extras kept in RAM? Just thought I'd add in the fact that I'm running Xfce as opposed to KDE or GNOME in an attempt to have a smoother running system on my old hardware. Also, what's the "VIRT" column?
if I dont use the oracle script written below, then system start fine, but if I use the following script, then system hangs up at startup at message 'Enabling swap space'. I am using Redhat ES 4, with Oracle 10g R2.
vi /etc/init.d/oracle #!/bin/bash # # Run-level Startup script for the Oracle Instance and Listener
I found what I believe to be odd behavior on an OpenSuSE 11.0 computer today. I needed to add some disk space on one of our computers and here is what I did: This computer had a separate disk for swap space so I deactivated swap (swapoff -a) and then removed the swap entry from /etc/fstab. I then shut down the computer and replaced what was a single disk used only for swap with a RAID1 hardware mirror.
I then booted the system and added a swap partition and another file system on the new RAID1 volume. Even after activating the new swap space with swap on, no swap ever seems to be actually allocated. The swap space shows up in top, free, "swap -s" and vmstat, but never gets used. I realize that a reboot will result in the swap being used, but is there anyway to get the kernel to use the swap without a reboot.
It's probably worth noting that I verified this behavior on a second computer. That is I turned off swap, removed the swap entry in /etc/fstab and then rebooted. Swap is never actually allocated until a second reboot. By the way, this was discovered when some of our users attempted to run java on the system where I did the first work and they got:
prompt> java -version Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine.
Yesterday, java was working fine and I got the same results on my test computer. Is this a kernel bug or just odd behavior?
Working with a scientific code that uses more RAM+swap then i generally have (system has 12GB RAM + 24GB swap, but this thing is crazy)It's kind of a one use problem, so I'm not looking to get more RAM, is there a quick way to add more swap space (not on the swap partition, because i have that set at 24GB) so that my system can use it immediately?I don't want to drive up to the office tonight to get this fixed, so a command line setup would work best.
I was fortunate enough to acquire some old 2u server hardware (from 2005) on which I wanted to learn how to use Ubuntu. Ubuntu fails to mount any partition, in fact gparted cannot detect anything. The installer detects the scsi hdds but then fails when it tries to actually make a partition. I've searched this forum, linuxquestions and google. Nothing relevant was found and the solutions involving probing with commands within linux were irrelevant since zero partitions show.
I've tried Ubuntu 10.4, but settled on trying to install 8.10 since it seems to boot up faster and at least detects the physical hard drives quicker. Also tried windows xp and that says "no hard disk detected". I would've tried windows 7 but the server doesn't have a dvd drive.
On one of my servers the "free" command tells me that a lot of swap space are in use. What I'd like to do is to determine which processes have been swapped out. I tried issuing "top" and sort by the "swap" column, but this doesn't seem to provide correct values - when performing the same excersize on another server with close to no pages swapped out, the sum when adding the swap value for each process greatly exceeds the swap usage reported by "free". So how do I go about determining the swap space used for individual processes?