Bug 1576467 - RFE: Do not create swap on (e)MMC devices
Summary: RFE: Do not create swap on (e)MMC devices
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-09 14:23 UTC by Hans de Goede
Modified: 2021-09-20 12:57 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Hans de Goede 2018-05-09 14:23:10 UTC
Hi,

Creating swap on (e)MMC devices (/dev/mmcblk*) is not a good idea, this is both very slow and will thrash/destroy the MMC disk quite quickly if the swap actually gets used.

So IMHO it would be better for anaconda to not create swap at all when doing automatic partitioning on a (e)MMC drive.

You should probably double check this with the ARM folks before implementing this.

I've added Peter Robinson to the Cc. Peter do you have any input on this?

Regards,

Hans

Comment 1 Peter Robinson 2018-05-09 14:26:33 UTC
> I've added Peter Robinson to the Cc. Peter do you have any input on this?

Not particularly although we can't currently do much about this from the disk image PoV as it's generated via virtual disks.

The issues are also quite device dependent too.

Comment 2 Hans de Goede 2018-05-09 14:30:35 UTC
Device dependent? AFAIK there is no (e)MMC where it is a good idea to put swap on there. Sure some sdcards are worse then others, but AFAIK none are really suitable for swap.

As for the disk images, I guess we could disable creating swap there through kickstart or some such?

Comment 3 Peter Robinson 2018-05-09 14:40:07 UTC
(In reply to Hans de Goede from comment #2)
> Device dependent? AFAIK there is no (e)MMC where it is a good idea to put
> swap on there. Sure some sdcards are worse then others, but AFAIK none are
> really suitable for swap.
> 
> As for the disk images, I guess we could disable creating swap there through
> kickstart or some such?

We could but we've had some swap on the disk images now for 6+ years, with no reported issues I'm aware of, and the images are used in a lot of other storage devices as well other than just emmc

Comment 4 Hans de Goede 2018-05-09 15:01:09 UTC
Ok, so lets keep the disk-images as is. Still it would be nice if anaconda could not create swap on eMMC disks.

Support for x86 based tablets / 2-in-1s like the Asus T100 Transformer series has improved a lot, so people can now run Fedora on them and creating swap on these devices with (cheap-ish) eMMC disks is a bad idea.

The same goes for a whole lot of ARM devices.


Note You need to log in before you can comment on or make changes to this bug.