Ubuntu :: Activating Swap File ?

Mar 19, 2010

I am using ubuntu 9.04 on my laptop from past 8 months. These days when I boot my laptop, The booting process takes more time on the following step:

Activating swap file

View 6 Replies


ADVERTISEMENT

Ubuntu :: Swap Or Swap File On Flash Memory?

Aug 16, 2010

RAM for older machines like I use is fairly cheap these days. But flash memory is just as cheap or cheaper. So I'd like to ask about the feasibility of expanding my system's memory using flash memory. And about whether creating a partition for swap on the flash memory, or whether a swap file on the flash device, is the better way to go.

By flash memory I have in mind mainly USB sticks or what are sometimes called "pen drives." But I do also have CF and SD cards that, with the proper cheap adapter (one of which I already own for adapting CF) could be used to create extra swap space. So, what is the current consensus on the feasibility/advisability of using flash memory for swap? I've read about the limited write cycles of flash being an argument against using it for swap. But recent reading indicates to me that the limited write cycles problem applies mostly to older, smaller-capacity flash memory. Some will come out and say that, for larger-capacity flash memory, the life of the device is likely to exceed the amount of time your current computer will be useful (I think I've seen estimates in the range of 3-4 years life--minimum--for newer, higher-capacity flash memory).

A more persuasive argument I've heard against using flash memory for swap is that access times for these devices can be much slower than SATA, and maybe even IDE, hard drives. That would certainly dictate against using flash memory for swap.

So, how about some input on this issue? Anyone using flash memory for swap? If so, what kind (e.g., usb stick or SD/CF)? Are you using a swap file or a swap partition? How's system performance? Likewise, has anyone had flash-memory-used-as-swap die on them? The consequences would undoubtedly be dire. Also, has anyone measured flash memory access times to confirm or refute claims about slow access times? Are some types of flash memory better/worse than others in terms of access times?

View 2 Replies View Related

OpenSUSE Install :: Swap Partition : Need To Check Swap File System?

Mar 20, 2011

Does one need to Check the Swap filesystem, from time to time

View 4 Replies View Related

Ubuntu :: Won't Use Swap File After Rebooting

Aug 17, 2010

I'm having problems using a swap file to increase swap space in Linux. I followed the instructions for creating a swap file, as shown here:

[URL]

It works, and I increased my swap space. But when I reboot, I'm back to the original amount of swap space I had before. The swap file I created is still there, but it's not being used as swap space. I tried remounting the swap file but it doesn't work.

Also, it seems there isn't an fstab entry created for the swap file. Strange, huh? I don't think it made a difference but I manually copied the UUID for the swap file and made an entry in fstab.

I may be wrong, but from what I can tell the UUID of the swap file keeps changing every time I reboot.

So basically every time I reboot I have to repeat the instructions shown above to get more swap space.

View 6 Replies View Related

Ubuntu :: Cannot Suspend Itself Into A Swap File?

Jan 31, 2011

I have read somewhere, that Ubuntu can not suspend itself into a swap file, is that true?

View 6 Replies View Related

Ubuntu Installation :: Swap File Onto New Extended HD?

Feb 1, 2010

I want to move my swap file onto a new extended hard drive.
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1243 9984366 83 Linux
/dev/sda2 1244 1305 498015 5 Extended
/dev/sda5 1244 1305 497983+ 82 Linux swap / Solaris

I want to put a 2Gb swap file on sda2.
> dd if=/dev/sda2 of=/mnt/2Gb.swap bs=1M count=2048
0+1 records in
0+1 records out
1024 bytes (1.0 kB) copied, 0.000388458 s, 2.6 MB/s

Why is this only copying 1.0kB? Do I need to format the extended drive first? I have tried specifying the block size and count a number of different ways with the same results.

View 8 Replies View Related

Ubuntu :: The Swap File Growing Uncontrollably?

May 20, 2010

Currently running 10.04 and Cacti latest version and although my RAM is only just over 3/4 used my swap file is growing. If I leave the box running for about a week the swap fills and the system grinds to a halt.Is there some way of seeing what's in the swap so I can debug the problem and get my system more stable again?

View 5 Replies View Related

Ubuntu :: Swap File Size Limit?

Oct 20, 2010

a possibly preposterous question. I am aware that you can designate a swap file or swap partition on your hard drive that linux uses as "memory". Suggested sizes for the swap file that I've seen range up to about 1024MB. Is there a limit to the swap file size that you can set?Basically I am running a perl script that processes a massive B) file (DNA sequence data), etc, and requires around 48 GB of memory to run, maybe a bit less. So, would it be possible to set a swap file to a massive, ridiculous size (~60GB oratever) and successfully run such a script on a desktop?Yes, I am aware that it would massively ow down the process. The thing is, if the perl script normally completes in about half an hour, and I can get it working on a desktop, I don't mind if it takes days or weeks to complete. I really don't. That's because it takes days or weeks to get access to a computer with the required grunt to do it.So, is this a stupid idea? Is it even possible? If so, given a perl script that normally completes in a half hour on a 48G system, if you do this, would it take days? weeks? decades

View 7 Replies View Related

Ubuntu :: Replace Partition With Swap File?

Nov 2, 2010

I currently have Ubuntu Desktop 10.10 installed and have a great setup. However, I'm trying to install another OS on the hard drive and need to remove a partition. I've read online that I can remove the Swap partition and use a "Swap file". My question is this: Is it possible to replace the Swap partition with a "swap file" without having to re-install linux?

Dual-booting: Mac OS X 10.6.3 / Ubuntu Desktop 10.10
Macbook Pro 6,1
2.8 GHz Intel Core i7, 4 GB RAM

View 5 Replies View Related

Ubuntu :: Swap Space Shows 0k But Have Volume Formatted As Swap

Dec 7, 2010

Lucid on an Acer Travelmate800.Can anyone tell me why I have 0k for swap space? I allocated swap which I can see in my Disk Utility's 'volumes' display.

View 5 Replies View Related

Ubuntu :: How To Detect & Create A Swap File/partition

Jan 26, 2010

I am sitting in front of an Ubuntu which was installed previously by someone else. How can I find out if a swap partition was defined?Is it always a swap partition or only a (ONE) swap file (like in Windows XP) ?If there is currently no swap partition: How can I create one and tell Ubuntu to use it?How can I conversely tell Ubuntu NOT to use a separate swap partition but to use

View 2 Replies View Related

Ubuntu :: Swapiness Of 60 Gb & Swap File 5.8 Gb - Increase The Values?

Feb 15, 2010

My swap file is 5.8 gb and I have a swappiness of 60. Is there any reason to increase any of these values?

View 9 Replies View Related

Ubuntu Installation :: Swap File Management Or Downgrade

Jun 28, 2010

Alright, I just wanted to see if this would even work, so I installed Ubuntu Lucid Linx 10.04 on a 2001 Sony Vaio with 1.7 Ghz. Intel P4 processor and, yes you're reading this correctly, only 256 MB of PC2100 Ram. I dumped in my own PCI wlan card and 64 MB Radeon 9000 Pro AGP card, then I did the installation.

Although I already ordered 2 mem chips (512 MB each) for this system which will max it out, I also created a 5 GB swap partition since I figured that this would greatly enhance the installation and consequent usage thereafter. Now mind you, the installation of 32bit Lucid worked like a charm. Slower than normal, but like a charm. Wifi is working and even the 3D desktop settings are working in advanced mode. BUT the system is just way too slow to react to the mouse and keyboard. I'm certain that the lack of memory has a lot to do with that although I was secretly hoping that the huge swap file would help to make a big perfomance difference. So here now my questions:

1. The swap file doesn't really appear to have made any difference at all. How come?
2. If I wanted to "downgrade" to Xubuntu, how would I accomplish this?
3. Would it be a better idea to just start over with an installation of Crunchbang instead?

I'm trying to get this system working for a relative who's never had a computer before. Whatever I end up with on this machine has to be as simple as possible to use while maintaining some semblence of decent perfomance. I'm sure before too long they'll want to enhance their desktop looks/theme as well so consideration needs to be given to that too. Your suggestions and comments would be appreciated. Again, Ubuntu Lucid runs just fine, although really really slow. Internet is no problem.

View 5 Replies View Related

Ubuntu :: Finding The Squid3 Swap File Location?

Jul 14, 2010

I got squid3 installed on ubuntu server 10.4. I believe it is up and running as I can browse the internet on my other computers.I followed one of the tutorials on the net and looked at others for guide as well. Everyone of them did not mentioned that we have to create the swap files. Are we suppose too? I couldn't find the location of the swap file anywhere on the server.

View 1 Replies View Related

Ubuntu :: 10.4.2 LTS LiveCD Using Hard Drive For A Swap File?

Jun 22, 2011

I am concerned about the LiveCD touching my HDD at all. Is this a factor, such as using HDD space for a swap file? I thought the whole thing ran off my RAM. Anyway here's my specs:

MacBook Pro 500GB:
HFS+ Partition w/Snow Leaopard ~400GB
NTFS Parition with WIndows 7 ~100GB
EFI Partition ~200MB

1) Does this mean I have a "swap file" on there I don't know about? I assume both WIndows and OSX use virtual memory to manage RAM when running in their respective operating systems but does that mean Ubuntu LiveCD will use one of my winows or OSX partition's "swap file"?

2) Or is there an invisiable partition created for LiveCD to use on some unallocated space on my HDD (I don't think there's any but idunno)?

3) How can I be sure the LiveCD is not writing ANY data to the HDD? I don't believe I have ever explicitly created a swap file in either OSX or windows.

View 5 Replies View Related

Ubuntu :: 10.10 Recreating Swap File After Install Of USBSTICK

Oct 25, 2010

I made a mistake and during the setup created a seperate swap partition and noticed that using this on a usbstick hindered performance. So I want to simply add the swap to the same partition as root and the others. I used this ubuntu help file. Will this suffice:

[URL]

View 16 Replies View Related

Software :: Swap The First And Second Column In A File?

Feb 3, 2011

I have a file in the following format

item1 item2 attrbute1, attribute2, line1
item1 item2 attrbute1, attribute2, line2
item1 item2 attrbute1, attribute2, line3
item1 item2 attrbute1, attribute2, line4
item1 item2 attrbute1, attribute2, line5

Question: what command can I use swap item1 and item2 around and keep the attributes in place.
A space seperates the first and second column. The file has many hundreds of lines in which these need to be swapped

Output needs to be as follows:

item2 item1 attrbute1, attribute2, line1
item2 item1 attrbute1, attribute2, line2
item2 item1 attrbute1, attribute2, line3

View 3 Replies View Related

Software :: Use CLI To Swap Names In A File?

Feb 25, 2010

I have a csv file of my students' names, but they're listed in the Asian order (last name, first name) and I need to list them in English order (first name, last name).

I know I can use something like awk, but that's usually substituting one thing for another. How can I get it to modify the names in a column in a csv file and swap the order? code...

I would want to switch "Tanaka Hiroto" to read "Hiroto Tanaka". There's about 500-600 names in the list, so doing this using CLI would save a lot of time.

View 4 Replies View Related

Ubuntu :: Dell Inspiron M101z Hibernate And Swap File

Dec 1, 2010

I have a Dell m101z laptop in dual boot configuration running Ubuntu 10.10 + W7. The hibernate and suspend option worked like a charm until I proceeded with some updates a few days ago from the update manager. After that the hibernate button mysteriously disappeared! Then I tried to install uswsusp (s2ram and s2disk) and to my surprise it reports that my swap file is invalid and fails to install! my fdisk -l

[Code]...

View 2 Replies View Related

General :: Big Or Small Swap File Size?

Jan 14, 2010

Should the swap file be as large as possible or as small as possible providing a person has 8GB of installed ram.

View 14 Replies View Related

Slackware :: File Permission About Encrypted Swap

May 28, 2010

I use the follow command to create a encrypted swap:

Code:
bash# echo "cryptswap /dev/sda5 none swap" >> /etc/crypttab
and edit the 'fstab' file :

Code:
/dev/sda6 / ext4 defaults 1 1
/dev/mapper/cryptswap swap swap defaults 0 0

That's work fine, but I found the permission of '/dev/mapper/cryptswap' is like this:

Code:
hello@world:~$ ls -l /dev/mapper/cryptswap
brw-rw-r-- 1 root disk 253, 4 2010-05-28 12:55 /dev/mapper/cryptswap
Other users can read the file '/dev/mapper/cryptswap', does it harm the system's security ?

View 4 Replies View Related

Ubuntu :: 'safe' Poweroff - Freezes On Disabling The Swap File And Doesn't Do Anything

Jan 9, 2010

Due to some reason not known to me at this moment, my regular shutdown doesn't work. It freezes on disabling the swap file and doesn't do anything. Now, until that problem is solved, I need a way to properly shutdown. I found one, which is poweroff -f, but it is hardly graceful, and would amount to 'flipping the switch' I guess. The other is hibernate, which is what I now use. This does work, but I rather completely shut down the system. For one, regular boot is quicker than resuming from hibernate.

My main question is: is there any way to make the poweroff -f command, e.g. combined with manually disabling the swap file or whatever,"safe?" as in, I can imagine a sudden power off meaning more chance of damage to the HD, which I don't want.

View 6 Replies View Related

OpenSUSE Install :: Move Swap File To A 8GB SD Card?

May 24, 2010

I just got a new laptop and installed 11.1, and I want to move my swap file to a 8GB SD card I have. It seems to run very fast, so it will improve swapping speed. I created a swapfile with Partitioner, and I can delete the existing swapfile with GParted during a reboot - but I'm afraid I will make my system unbootable by doing that - don't I need to first tell OpenSuSE what swapfile (on the new sdb) to use? I'm pretty sure it will detect the new swapfile automatically during boot, but it might choke on a missing (old) swapfile.

View 6 Replies View Related

General :: Command To Swap Even And Odd Numbered Lines In A File

May 28, 2010

I'm looking for a command to swap the even/odd numbered lines in a file. Example input file:

Code:

1
2
3
4

[code]...

Example output file:

Code:

2
1
4
3

[code]....

I'm sure there's a way to do it with sed, awk, grep and the like but it's been many years since I've used these commands on a daily basis and I can't seem to figure out the correct syntax.

View 2 Replies View Related

Server :: Look Which Process / Application Is Using SWAP Partition / File?

Jul 10, 2010

Is there any way to take a look which process/application is using SWAP partition/file?

View 1 Replies View Related

Debian Installation :: SSD - Garbage Collector And Swap Partition / File

Feb 27, 2015

After some years using OS X, I'm returning on Debian on my Macbook Pro in single boot.

I've bought a Samsung SSD (850 EVO 500Go) in order to replace the slow built-in HDD.

But I've earned about the need of repartition of writing operation on that kind of drives, and I'm concerned about swap partition.

I need swap (especially for Darktable, browsers and maybe Steam games), but I wonder if the usual swap partition (even with discard mount option) is really recommandable for SSD drives.

Actually, on Debian wiki and others, the usual recommandation is "if you have enough RAM, don't use swap or minimise swapiness to 1", but using of swap file is not mentioned.

Indeed, if I have only one "big" partition on the SSD drive and TRIM activated, the garbage collector (low level) built in chipet's SSD will optimize SSD life, but I don't know how the low level garbage collection works with multiple partition.

So there is my questions :

- Will SSD garbage collection will preserve the disc use even if I have a 2GB swap partition ?
- Will I'd use a swap file instead of swap partition (I don't really need to hibernate) ?

View 14 Replies View Related

Server :: Using Separate File Systems For Swap And / While Installing Servers?

Dec 16, 2009

I am still puzzled by IT guru who still install a server version of Linux using the default partition system. I am curious about what the IT guys in this forum think about this, even when the server is part of a cluster.

View 1 Replies View Related

CentOS 5 :: Need To Move Space From Root File System To Swap

Apr 7, 2009

I currently have a server with the default VolGroup00 that contains logical volumes for the root file system and swap using logical volumes LogVol00 (root) and LogVol01 (swap.) I need to take space from LogVol00 and move it to LogVol01. I have found documentation for increasing the swap, and the resizing the logical volumes. However in the documentation and the man pages it says that I have to reduce the size of teh file system on the logical volume I am going to shrink. I have found documentation resizing the logical volumes but not the file systems.

View 6 Replies View Related

Ubuntu :: Increase The _original_ Swap File's Size For Hibernate To Work - Wubi Install ?

Jun 8, 2010

Wubi doesn't let me set the swap file size, so on installation it only creates a swap file of a few hundred megabytes. Because of this, i cannot hibernate my netbook (eeePC 1005HA), which has 2 GB of RAM.

Creating a 2 GB swap file alongside of the original one using the tutorial here did work, but hibernate doesn't seem to work with it. For this reason i thought increasing the original swap's size instead of creating more would be a way to solve my problem.

View 2 Replies View Related

Ubuntu Installation :: Dual Boot Partitioning \ What File System Should Use For Windows Swap Partition

Sep 1, 2011

I am about to get a new laptop here soon and I was planning a dual boot like I have on my current laptop (Win7 and Ubuntu), but I have something special in mind. I looked around the forum to see if there was anything like what I had or if it was even possible but I didn't see anything quite like this.I was wondering if this was even possible, and if so, would anyone be able to tell me what filesystem I should use for my windows swap partition?

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved