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


ADVERTISEMENT

Programming :: Implementing A Garbage Collector In C++?

Aug 27, 2009

I'm interested in writing a generational garbage collector in C++. This is for a Python-like programming language project. I have used Boehm's garbage collector before, but I'm worried that it will have noticeable pause times (unacceptable for interactive programs). Since I can't really find any other C++ established GCs out there, I have been thinking of simply writing my own.

However, there are two essential ingredients I need for this:

- Some kind of write barrier mechanism that will notify my collector when something is written to a part of the heap

- A way for me to know the addresses and sizes of the stack, heap and global storage (the root sets)

how to implement write barriers (and how to get the stack, heap and global storage information) on the Linux platform? As an alternative, if you know of C++ GCs other than Boehm, I would also be interested.

View 14 Replies View Related

Debian Installation :: Wiped Windows Partition With Swap And LVM Partition

Jan 17, 2015

I am having issues with Grub 2 after installing Debian 7.8.0.The computer is a HP Pavilion 500-307nb. I made the original harddrive /dev/sdb and inserted a Samsung Evo 840 as /dev/sda. From the original hard drive (/dev/sdb), I wiped the windows partition, but left all other partitions unchanged (in case I would ever want to recover the desktop to its original state). I replaced the wiped windows partition with a swap partition and an LVM partition.These are my hard drive partitions:

/dev/sda (Samsung Evo 840)

Number Start End Size File system Name Flags
1 1049kB 3146kB 2097kB primary bios_grub
2 3146kB 944MB 941MB ext4 boot
3 944MB 94.4GB 93.4GB host lvm
4 94.4GB 1000GB 906GB guests lvm

[code]....

The partition /dev/sda3 has 2 logical volumes with filesystem ext4 that I mount to / and /home.The partition /dev/sda2 is mounted to /boot..When I install like this, Debian installs fine, however Grub2 is not installed correctly.Debian installs grub-pc which seems not able to boot the gpt partition. So I boot the Debian CD in rescue mode and execute:

mount /dev/sda2 /boot
aptitude purge grub-pc
aptitude -y install grub-efi

After rebooting, I come in the grub rescue shell, which says: error: no such device: 986f2176--4a4b-4222-83b9-8636a034b3c7.

When I then enter in the grub rescue shell:
set boot=(hd0,gpt2)
set prefix=(hd0,gpt2)/grub
insmod normal
normal

Grub and Debian start up correctly.why can Grub not start up automatically correctly? Where does the UUID 986f2176--4a4b-4222-83b9-8636a034b3c7 come from? I have reinstalled Grub several times, I have reinstall Debian several times, I have even wiped all partitions from /dev/sda and recreated a new gpt table with parted and manually set the partitions in parted. Still on each reinstallation, Grub fails because it cannot find exactly the same UUID. Since this UUID is always the same, it must be stored somewhere, but it cannot be the partitions, I have wiped them and the partition table several times.

I did though a firmware update of the Samsung Evo 840 before reinstallation, could this be a cause?Also the problem is not in grub.cfg. Grub starts correctly if I enter the commands above in the grub rescue screen and the UUID value does not appear there.

View 5 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

Debian Installation :: How To Find Out If Swap Partition Is Active

Feb 12, 2015

I recently installed Debian 7.6 64-bit on Dell Vostro 1520 laptop.Using Gparted, create extended partition in the remaining disk space 67.91 GB

Install Debian 7.6 as follows
Code: Select all/dev/sdb5   /        8GB   Ext4   
/dev/sdb6   / home   17GB   Ext4   
/dev/sdb7   swap     5GB

I opened a terminal and ran some commands to show the results below....

Code: Select allroot@DELL-DEBIAN:/home/hugh# cat /proc/swaps
Filename            Type      Size   Used   Priority
/dev/sda7                               partition   4979708   0   -1
root@DELL-DEBIAN:/home/hugh#
Code: Select allroot@DELL-DEBIAN:/home/hugh# cat /etc/fstab
# /etc/fstab: static file system information.

[code]...

I have a couple of questions....

1. Does the data above indicate everything is running as it should?

2. What does this command tell me about swap? "/sbin/swapoff /dev/sda7" I read somewhere it should be run on 64-bit system but not sure what it does.

3. Is the command "cat /proc/swaps" the best way to determine if swap is running ok?

4. Can I share this swap partition with another distro, e.g. Ubuntu or Xubuntu? as I would like to multi-boot for testing purposes.

View 14 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

Fedora Installation :: Installation - Creating A Swap Partition Or A Boot Partition?

Jul 27, 2009

I have a brand new thinkpad X301 with 4GB of RAM and thinking of getting fedora 11 on it. The plan is to have it triple boot with vista/seven and hopefully OSx86. I am aware of the 4 primary partitions limit on an MBR disk. I was thinking of having a swap file instead of swap partition and not creating a boot partition as well. If I install the boot loader(GRUB?) on the root partition will I be able to boot it without any problems by using vista's boot loader?

Or Maybe I should install GRUB on the MBR and add all the other operating systems on it? Does anyone have any objections for not creating a swap partition or a boot partition? When comes to desktop environment I've been using KDE in the past, is there any major advantage of using Gnome over it? KDE seems to look really nice on fedora where Gnome is maybe more stable?

View 4 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 :: 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

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 :: Swap Partition Between Distros

Apr 26, 2015

Is it possible to use the same swap partition between distros or not ?

View 5 Replies View Related

Debian :: Creating A New Swap Partition ?

Jul 3, 2011

Currently my system runs on two disks, sda 30GB and sdc 1GB. sdb is my data disk. I have set the partitions as sda1 /boot, sda2 /(root) and sdc1 /(swap).

Thinking that sdc was udma33 i used the disk for a swap area. Later i found out that it is pio4 and i want to relocate my swap area to sda.

Using GParted Live i am planning to create a swap partition to sda. Will fixing the entry in fstab be enough to correct this or do i need to do something more?

I could also use some advice on which live debian image i can install in sdc, to use for rescuing purposes. The capacity of the disk is 1080MB.

As a side note, the images i find for usd-hdd are direct download. Are there any torrent files for these?

View 2 Replies View Related

Slackware :: Tell If Have 'garbage' In Root Partition?

Mar 7, 2011

My root partition /dev/sda1 is 24.41 GiB with 10.48 GiB used. How can I tell if I have inadvertently placed a bunch of garbage on this partition? Also, should I, and I use the term loosely, 'move' certain directories to my home partition /dev/sda3? (118.77 GiB with 3.14 GiB used)

Right now I believe that, rightly or wrongly, if I screw up my system, all I need to do is install my Clonezilla image back to /dev/sda1 and I will have a 'mostly' working system. If I 'move' anything out of /dev/sda1 to /dev/sda3, will this hold true? Or am I out to lunch on this assumption anyway?

View 14 Replies View Related

Software :: Init: Failed To Spawn Readahead-collector Main Process: Unable To Execute: No Such File Or Directory

Apr 6, 2011

My machine is dual booted with Fedora 14 and RHEL 6. (I have only installed Red Hat because I am studying for RHCE). Just now I tried to install the Banshee player on my Red Hat OS. I ran various scripts inside the directory to see what really happens and after I ran the 'Makefile.in' file my terminal froze. It displayed '/bin/ not found'Then i restarted my computer and I got the following messages:

init: Failed to spawn readahead-collector main process: unable to execute: no such file or directory
init: Failed to spawn rcS main process: unable to execute: No such file or directory
init: Failed to spawn readahead main process: unable to execute: No such file or directory

[code].....

I tried run level 1 and run level 3 but I get the same error messages.

PS: My Fedora 14 installation is working fine.

View 1 Replies View Related

Debian :: Configure Squeeze To Use Lost SWAP Partition

Jan 23, 2011

During the second OS (CentOS) setup, the shared SWAP partition was formatted and now I get the following under Debian:
Code:
# free
total used free shared buffers cached
Mem: 507524 251436 256088 0 11488 78332
-/+ buffers/cache: 161616 345908
Swap: 0 0 0
How to configure Squeeze to use again this SWAP partition?

View 5 Replies View Related

Fedora Installation :: How To Create Swap Partition?

May 31, 2009

On numerous installs I ignored "swap" message but want to create one this time. And can it be done post installation?

View 5 Replies View Related

Ubuntu Installation :: Using FAT32 Partition As Swap?

Apr 5, 2010

I'm installing a new SSD this upcoming weekend. My thought was to go easy on it so it lasts longer by putting my swap files on a mechanical drive instead of the SSD. I don't - however - want to waste space for swap files. It would be nice if I could use the same 6GB FAT32 partition for swap files for both Windows 7 and Ubuntu. Is this possible? It might not even be necessary though, I have enough RAM that I rarely use the swap file at all (I've even considered going without swap all together), so it probably won't pose a huge load to the drive.

View 9 Replies View Related

Ubuntu Installation :: Swap Partition Locked?

Aug 3, 2010

I have Ubuntu 10.04 installed. When I run Ubuntu 10.04 LiveCD and I start GParted I see that there is a "key" on my swap partition marking it as locked I guess. When I right click, I cannot select "Delete" option. What does this mean? What if I want to rearange my partitions sizes including swap partition for whatever reason?

View 1 Replies View Related

Ubuntu Installation :: Add Swap Partition Without Reinstallation

Apr 9, 2011

I'm using ubuntu 10.04 and it seems that I forgot to set up a swap partition when I installed my system. So, I can't install hibernate, and I don't think I have any virtual memory any more.

I know that I can always set up a swap file to play the same role, but since swap file is not contiguously stored on hard disk, the performance is expected to be worse than a swap partition.

So, how can I add a swap partition and make my system boot with it every time from now on? I have unused space on my hard disk, and re-installation is NOT an option.

View 3 Replies View Related

Ubuntu Installation :: Does Swap Space Need It's Own Partition?

Aug 9, 2011

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?"

View 2 Replies View Related

Ubuntu Security :: Way To Encrypt Your Swap Partition After Installation?

Mar 14, 2010

Is there a way to encrypt your swap partition after installation?

View 3 Replies View Related

Ubuntu Installation :: Swap Partition Would Be Deleted Safely With 4M Ram?

Apr 23, 2011

RAM of the machine is 4M. I never see the swap partition has been used via system monitor. So can I safely delete the swap partition?

View 7 Replies View Related

General :: Creation Of Swap Partition During Ubuntu 9.10 Installation

Mar 26, 2010

When I do a "clean" install of Ubuntu 9.10, Step 5 of 7 is when you choose how to partition your hard drive. My Acer Aspire Desktop has 8GB of RAM and a single 160GB SATA hard drive. If I choose to let Ubuntu do the partitioning, only three partitions are created and one of them IS a Swap partition. However, if I choose the second option to manually create my own partition tables, there is NO Swap option listed in the drop-down list of partitions to create!! Why in the world not, considering the importance of this partition and the fact that the first option DOES automatically create it? A second related (I think) is about the Live System Rescue CD and GParted 4.9. When do you use either of these utilities? After all, GParted is included System Rescue CD.

So, if I want and choose to do a manual/advanced partitioning of my hdd, the only time I can see using either utility is after the complete installation of the Ubuntu distro. Yet, choosing to manually partition my hard drive always results in an error or warning message that I haven't created a Swap partition before proceeding to Step 6 of the installation. Well, of course not since the choice isn't even possible. Good grief, what am I supposed to do when I arrive at the step where I am supposed to choose and then create the partitions for my hdd? Choose the first option, which I don't think is wise/good at all, especially with security in mind. Or choose the second option of using a program like GParted at all? It is hard enough for me to choose a partitioning scheme at all, since opinions on how many partitions are needed and what sizes they should be.

View 2 Replies View Related

Ubuntu Installation :: Resized And Created Swap On The Wrong Partition?

Mar 19, 2010

my friend was installing ubuntu when he while editing the table from the installation menu, chose to shrink the partition and use it as swap, he didn't realize he was using the actual partition not the 1 to be created as swap.so he ended up with 160 GB swap and 15 GB NTFS partitions.will deleting the partitions and recreating the NTFS partition again restore his data?

View 2 Replies View Related

Ubuntu Installation :: Swap Partition Won't Mount After Kernel Upgrade?

Dec 1, 2010

I just installed kernel 2.6.37-rc3-natty in an effort to clear up the audio stuttering problems prevalent in Maverick. It worked, but now my swap partition won't mount on startup and because of this the computer won't hibernate. I'm using a Toshiba NB305-400 netbook w/1GB of ram, 250GB HDD and 1.6 GHz processor.Here's what's in my fstab file:Quote:

# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation

[code]....

View 5 Replies View Related

Ubuntu Installation :: Assigning Swap Partition To Enable Hibernation?

Dec 22, 2010

i want to create/assign a swap partition so i can hibernate by comp. i've tried the ubuntu guide on creating a swap file but it didnt work, i created a linux-swap partition and used the mkswap command but that didnt work either (maybe it did but i cant hibernate anyway?!) right now my partitions look like this:

/dev/sda1 extended
/dev/sda5 linux-swap
/dev/sda3 ntfs (windows partition)
/dev/sda4 ext4 (ubuntu partition)

View 2 Replies View Related

Ubuntu Installation :: Getting A 50GB Root Partition 3 GB Swap And The Rest For Home?

Feb 25, 2010

I want to install from scratch or change a current system, which ever works best to have the following partitions: I have a 160GB HD and want a 50GB root partition 3 GB swap and the rest for home. When i go throught the guided partitioning process the largest i can get is 8GB. The root partition is the bootable partition correct?

View 2 Replies View Related

Installation :: Dual Booting Arch And Vista With Recovery Partition And Swap

Feb 13, 2010

The problem is, on a machine, you can only have 4 primary partitions. sda1 and sda2 are my Vista and Recovery partitions respectively, which eliminates two of my primary partitions already. I myself have never used logical partitions, and was wondering if any of the partitions the Beginner's Guide recommends (/, swap, /var, and /home) could be made logical, and if I even need a swap partition.

View 5 Replies View Related

SUSE :: Partition Space Alloted For Swap / Root / Home In 11.2 Installation

Jan 12, 2010

1. Pentium 4 with 1.8 gh 2. 512 ram 3. 15 gb hard disk. installation specially regarding partition option (eg.. how much alloted should be for swap/ root/home etc)

View 1 Replies View Related

Debian Installation :: File System For Boot Partition?

Dec 31, 2010

Is there recommended file system for boot partition. Debian default use ext2. Why? Can it be used ext4? I know the difference between ext2 and ext4. But why, currently in Debian, boot partition is ext2 and all others are formated with ext3...

View 3 Replies View Related







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