[Bug 340153] New: use existing swap file instead of recreating it each time during installation
https://bugzilla.novell.com/show_bug.cgi?id=340153 Summary: use existing swap file instead of recreating it each time during installation Product: openSUSE 11.0 Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Enhancement Priority: P5 - None Component: Installation AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: pczanik@genesi-usa.com QAContact: jsrain@novell.com CC: snwint@novell.com Found By: --- A great feature was added to 10.3, the possibility to use swap files during installation ( http://lists.opensuse.org/opensuse-factory/2007-05/msg00395.html ). This makes possible to install 10.3 on low RAM machines. Problem: currently the installer creates a _new_ swap file on each installation, even if the file is already available. Creating a 1GB swap file on an USB key might take half an hour, which adds considerably to the installation time. Enhancement: Please make it possible to use existing files as swap files, as this could drastically shorten installation times. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=340153#c1 Matt Sealey <matt@genesi-usa.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |matt@genesi-usa.com --- Comment #1 from Matt Sealey <matt@genesi-usa.com> 2007-11-08 04:56:36 MST --- My comment here will be that obviously the use of existing swap files must be able to check if the file is real or sparse, and perhaps if it is already a valid swap file. Actually the check should be reversed, the presence of a swap header implies that the file is not sparse since mkswap will not operate on sparse files. This optimizes out the need to mkswap on a potentially slow medium (even 10 or 20 seconds is a long time to hang around). If the file is not a valid swap file then mkswap should be run, which will confirm that it is not sparse, then it can be activated. If the file fails mkswap then recreation of the swap file can be entertained. I wonder about the performance of making a swap file - is "dd" the best solution? As a preexisting tool it may be easier to entertain, but perhaps filling an existing file or creating it through some other method (fallocate?/fopen/fwrite loop/fclose..) is faster than starting from 0 and extending it? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=340153#c2 --- Comment #2 from Steffen Winterfeldt <snwint@novell.com> 2007-11-08 05:05:03 MST --- Checking for a valid swap sig would be ok. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=340153 Cyril Hrubis <chrubis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.provo.novell.com |yast2-maintainers@suse.de -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=340153 Thomas Göttlicher <tgoettlicher@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tgoettlicher@novell.com AssignedTo|yast2-maintainers@suse.de |fehr@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=340153#c3 Arvin Schnell <aschnell@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aschnell@novell.com AssignedTo|fehr@novell.com |snwint@novell.com --- Comment #3 from Arvin Schnell <aschnell@novell.com> 2007-11-13 05:58:25 MST --- Linuxrc does swap activation for installation. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=340153 User matt@genesi-usa.com added comment https://bugzilla.novell.com/show_bug.cgi?id=340153#c4 --- Comment #4 from Matt Sealey <matt@genesi-usa.com> 2008-10-24 13:44:40 MDT --- Nudging this bug as it's still open and not sure of the status. I will test the swap activation this weekend (mem=256, precreated file on USB using dd) and see what happens and report back. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=340153 User matt@genesi-usa.com added comment https://bugzilla.novell.com/show_bug.cgi?id=340153#c5 --- Comment #5 from Matt Sealey <matt@genesi-usa.com> 2008-11-24 13:48:15 MST --- *** Bug 438890 has been marked as a duplicate of this bug. *** https://bugzilla.novell.com/show_bug.cgi?id=438890 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=340153 User matt@genesi-usa.com added comment https://bugzilla.novell.com/show_bug.cgi?id=340153#c6 Matt Sealey <matt@genesi-usa.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Component|Installation |Installation Info Provider| |aschnell@novell.com Product|openSUSE 11.0 |openSUSE 11.1 Target Milestone|--- |Future/Later Version|Alpha 2 |Beta 5 --- Comment #6 from Matt Sealey <matt@genesi-usa.com> 2008-11-24 13:54:32 MST --- Bump! The swap activation seems to be okay now but it relies on user interaction (to pick a file from somewhere) or worse, having a dedicated partition for it for addswap= parameter which requires manually partitioning the disk beforehand or using an evil slow USB stick (which still has to be chosen). Is it possible to activate swap and modify the addswap= parameter such that it uses Linuxrc paths instead of finding a block device entry from somewhere? This would help for the case where a file must be used. We have a use case where we want to configure a disk automatically and then reboot into the SuSE installer. The most comfortable way is to format a disk with a single partition for SuSE (with mke2fs -j -I 128 -L openSuSE-Foo /dev/sdaN) and then create a swap file on this partition both to reduce the amount of partitioning needed and alleviate the need for seperate partitions for boot (which overcomplicates matters when multiple installs are used, especially on MBR) and to reduce fragmentation of the swap file. The required boot line would then be something like boot hd:0 inst32 install=http://download.opensuse.org/distribution/11.1/repo/oss addswap=file:/swapfile?device=*label/openSuSE-Foo or hd:/swapfile?device=*label/openSuSE-Foo or whatever the thing would be. In the use case where a swap file is on a disk where SUSE is installed to (with a custom partition setup and not formatted) then ideally this would be passed into fstab such that it is activated at boot.swap time? This sort of includes the other bug report of a similar nature, https://bugzilla.novell.com/show_bug.cgi?id=438890 which I am about to mark as a duplicate of this bug.. :] As a side note I wonder is there any way to pass in a parameter without using AutoYaST to pick the device to install *TO* (possibly allowing some NFS urls to be dropped in) - or an easy way to make an AutoYaST image which can be passed in and somehow allow us to push an installation to an arbitrary partition which has already been formatted.. I know these are quite weird requirements but it makes the installation and testing of systems across our worldwide development team much less full of woe and despair and everyone having a different system setup by way of forgetting to click a button or having a personal preference..? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=340153 User aschnell@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=340153#c7 Arvin Schnell <aschnell@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|aschnell@novell.com | Resolution| |FEATURE --- Comment #7 from Arvin Schnell <aschnell@novell.com> 2008-11-25 02:04:40 MST --- This is a feature request. I already explained in another bugzilla entry that the use cases for swap files are rather low so I'll not add it to YaST unless product management wants it (and thus drops other new features). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com