[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Lower memory install tip (example from yesterday's meeting)
- To: "Berkeley Linux Users Group" <berkeleylug@googlegroups.com>
- Subject: Lower memory install tip (example from yesterday's meeting)
- From: "Michael Paoli" <Michael.Paoli@cal.berkeley.edu>
- Date: Mon, 27 Nov 2017 07:25:26 -0800
- Arc-authentication-results: i=2; gmr-mx.google.com; spf=neutral (google.com: 198.144.192.42 is neither permitted nor denied by best guess record for domain of michael.paoli@cal.berkeley.edu) smtp.mailfrom=Michael.Paoli@cal.berkeley.edu
- Arc-authentication-results: i=1; gmr-mx.google.com; spf=neutral (google.com: 198.144.192.42 is neither permitted nor denied by best guess record for domain of michael.paoli@cal.berkeley.edu) smtp.mailfrom=Michael.Paoli@cal.berkeley.edu
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:user-agent :content-disposition:mime-version:subject:to:from:date:message-id :arc-authentication-results:arc-message-signature:sender :dkim-signature:arc-authentication-results; bh=uZ4D5qJZ4jqalhLd+kv++EnvPN6W3dIw1egyKAf2cuE=; b=w4dGZilKOkWv80M0bLJHVz/51OPx4Cui8tZpZ0pQ+/aHHnDmGyH3kL6VY3vZMcDuKG 07zB+99E8m6hRNPIUektIjFYdtZRLiON+s82qMfl6L8Svsp69kbg7ZVgcteSJ0ZXMhsq PRLjN3uRyQhSghYFkiq8FI23PUBZh0J0vbCCLkJnwHXBu2GcW2VEk/BgAoFi8v0nnOhn 55GsOBNb2BKTSXDuhqpArNRLmJi8dTROC2ohyA+PoDCi1QFhrPMfKNha4gQtHQ/U1kzG 9C/tanXjgJ+XkCoTjtEKH7P8HtutqNxrryLSx/SDj92nMSDhdLk8rCY5KrHfeEXICPaU nd3w==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:content-transfer-encoding:content-disposition :mime-version:subject:to:from:date:message-id :arc-authentication-results; bh=LExDJ2CP0elVlFtthOl8d1TE0TwMX19Ir2XEt9mLHFM=; b=jP2UPEN7Tampq6Z1zZBK3k5CGq0pETEKyT/i31+/j6ETGFTXtZYxpiIsNpPX/r0RBW 0ABgPcKrHTj5WMNd41HWMLeF6j2SwrxsIJt0naDBIqNh1Qz16qbhYcaJaT/Yzl4ae8Li vNhRHLJd7Rt1OI1kf32eMQe/7SsZcDiay1u2F0O8KWT9nvFAHdJWyGQZxhSZ5ewT4vqf sOi+W/H6oh+Ycs747CjZ2l720lCn+1eKOS3d0PqZvbl3zoc7KVnH2wnfqDJbF6FruFiZ cq4sBapwxZf6Y90j7h2GTmwjtFiw7Amii4jXhLeEOC1zSElBlP/lULRiSCYUvADuKTeP /n3w==
- Arc-seal: i=2; a=rsa-sha256; t=1511796328; cv=pass; d=google.com; s=arc-20160816; b=RGtcRQR+cSKjQQlwZ66XUdQN9a6wkFIg7xN8PeD6RnOPPCK0Y80+WgYhudrq+V6NLP ttqcQdykpMuv/doY0bU3oyx4Gdax86DMhVOAL1Yst5pEGg/IpZoi2aUtH4GghLEUN5p4 UVcdU2j7ynVcCGOBKIfD3hta34Xh5na9Wh0i+2w3xYAjppxjwI9e8eSGfKRK5g3w92qW fCuPOvYGSFgl2GBWnSTgyNVlbSOJ8wcKtwCrkZi11E+fbfOGSwfKmFdeEczIM9ILbZea c8zwtLkwFi53Ruhy5bbJwiSszWS+crHZ0uwc79ul4sZ3kl+h3VwkykDKqPpU6JzFhy/l w/Uw==
- Arc-seal: i=1; a=rsa-sha256; t=1511796328; cv=none; d=google.com; s=arc-20160816; b=jvJGF+nkQndZe4wOB1YOMYsWIJSZxo5BqsyJog4oM4SmohnFwuvdSoNnJumvKvn3Ff QSOA25Kxvfjm01oSi9FlLyweW1yM+BMi8XC6nlgvlottfGQ6d5M9I06dD72KntTgD+um gE2exTYfyOjM1pJZC3dEGtEBmfUexdxPkFy4OvGMkJbS0j1g49hwN0vRn0tJ8p3JjAAd kcFeDonvSKPVLPRVz/quNCHTwexWg3bEEXhaZ6q2kj4WJunGQvFTL9k8fqGAKyLr5rN/ zyA+6uStYK0SSeSmMVWzu6rxPydTsNml2TKX1jJ1WwfQ9YM4aiwcu9U+xpQhLznIjrs8 1jyg==
- Delivered-to: historian@entropia.netisland.net
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:message-id:date:from:to:subject:mime-version :content-disposition:user-agent:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=uZ4D5qJZ4jqalhLd+kv++EnvPN6W3dIw1egyKAf2cuE=; b=tdKfm2UT6wHLUwTL6vNuVSEpCOp1dl5G7f+2zuY/eWQLS6mhJQWUsTmTUw/96QhMhv Jl0FQMvNURQ+B6MxHk8l4oKCdjvrpXCasGyOZFsPkZx7BfRYaVwgPUR6K8idijdf6224 A9m5QN5bdsUgzBE4B0kqvJ8sW0tMh0DvyteQzV6GwRuZVmkqgK3Gr9dmHe32xgGXZSJq emwAp+JvgZhOHrWSF+JnDKtOVHbX3jn/VxVop7zWhimvEtLMJJ6bGRXRxLz4bYHCKKLq M6rHoP5s3Awmbue44vZZiuYz1Ce0wWCH5yifciiS5wKM/zKooX4rIy6YTNGPbsXOJn8I 5ZFw==
- List-archive: <https://groups.google.com/group/berkeleylu>
- List-help: <https://groups.google.com/support/>, <mailto:berkeleylug+help@googlegroups.com>
- List-id: <berkeleylug.googlegroups.com>
- List-post: <https://groups.google.com/group/berkeleylug/post>, <mailto:berkeleylug@googlegroups.com>
- List-subscribe: <https://groups.google.com/group/berkeleylug/subscribe>, <mailto:berkeleylug+subscribe@googlegroups.com>
- List-unsubscribe: <mailto:googlegroups-manage+61884646931+unsubscribe@googlegroups.com>, <https://groups.google.com/group/berkeleylug/subscribe>
- Mailing-list: list berkeleylug@googlegroups.com; contact berkeleylug+owners@googlegroups.com
- Reply-to: berkeleylug@googlegroups.com
- Sender: berkeleylug@googlegroups.com
- User-agent: Internet Messaging Program (IMP) H3 (4.2.1-RC1)
Lower memory install tip (example from yesterday's meeting)
Got an installation that's a bit intensive on memory, struggling with /
not quite making it through the installation on account of that?
But ... the distribution/installation itself is (semi-?)reasonable as
far as (virtual) memory goes ... at least once it's been installed?
Installing from ISO image on USB flash?
But the flash is fair bit bigger than the size of the ISO image itself?
Well, try adding, early in the installation process, some swap on that
USB flash!
E.g. Kubuntu (or Ubuntu) 16.04.3 LTS amd64 - struggles (at best!) to
install from the (standard) Live DVD on a system with "only" 1 GiB of
RAM(!). But it does run (semi-?)reasonably once installed (and with
swap also configured and available).
So ... when installing, quite early in the procedure - before kicking
off the install proper (before clicking or double clicking the desktop
icon to kick off the install) ...
open up root session on text virtual console, e.g.:
<Control>-<Alt>-<F1>
login (e.g. kubuntu)
become root (superuser, UID 0), e.g. via sudo.
examine and determine the disk/flash devices, e.g.:
# blkid /dev/sd?
...
/dev/sdb: UUID="2017-08-01-12-29-51-00" LABEL="Kubuntu 16.04.3 LTS
amd64" TYPE="iso9660" PTUUID="626b608f" PTTYPE="dos"
#
Note the device that has the ISO image - /dev/sdb in our example.
Make note of the size of the ISO image - you'll need that information:
$ ls -on kubuntu-16.04.3-desktop-amd64.iso
-r--r--r-- 1 0 1599602688 Aug 1 12:29 kubuntu-16.04.3-desktop-amd64.iso
$ curl -I -s
http://cdimage.ubuntu.com/kubuntu/releases/16.04.3/release/kubuntu-16.04.3-desktop-amd64.iso
HTTP/1.1 200 OK
Date: Mon, 27 Nov 2017 14:43:55 GMT
Server: Apache/2.4.18 (Ubuntu)
Last-Modified: Tue, 01 Aug 2017 12:29:59 GMT
ETag: "5f580000-555b04e41cadd"
Accept-Ranges: bytes
Content-Length: 1599602688
Content-Type: application/x-iso9660-image
$
Either way, we note the size (in bytes): 1599602688 - be sure you're
checking the ISO that precisely matches what's on the flash.
Now create a loopback device that starts on that USB flash immediately
after the ISO image, and also (optionally) set a size(limit) for it:
# losetup --show -f -o 1599602688 --sizelimit 1073741824
/dev/loop1
#
And note the loop device it shows as output (if for any reason you
don't see that, use:
# losetup -l -a
#
to determine the created loopback device (it should have the correct
offset that we set, and sizelimit if we set that, and correct underlying
device).
Note that we gave an offset (-o option) precisely matching the size of
our ISO image.
In our example, we set a sizelimit of 1 GiB (expr can come in
handy, e.g.:
$ expr 1024 \* 1024 \* 1024
1073741824
$
)
This was chosen as it matched our physical RAM (ample for swap), and was
less than the remaining space on the USB flash (didn't need it all). If
the remaining space on the USB flash is less than the size of physical
RAM, one may want to omit the --sizelimit option and option argument.
And what if you're not sure of the size of the USB flash device?
$ cat /sys/block/sdb/size
(or whatever your USB flash device is - sdb in our example)
that output gives you the size in 512 byte blocks
Now format that USB flash space for use as swap, and activate it:
# mkswap /dev/loop1
# swapon /dev/loop1
That's it. One can verify the swap is active with, e.g.:
free
swapon -s
Then just proceed with the installation as normal (e.g.
<Control>-<Alt>-<F7> to return to the ewey GUI console and then click
or double-click the install icon to kick off the install proper).
In example case done yesterday, swap usage went to over 600 MiB before
the installation (successfully) completed. So having the added (virtual)
memory (swap) was important ... the installation attempts otherwise
slowed to absurdly unresponive/slow/locked. Use of free early on
provided essential clue that we were relatively starved for (virtual)
memory - hence decision was made to (temporarily) add swap while
installing.
Or, of course :-), one can use an installer/(distribution) that doesn't
suck so bloody much RAM, e.g. the Debian installer, found of course on
the Debian distribution and used by default there, and also ... well,
the various *buntu flavors used to put out an "alternate" installer
CD/DVD image - which used the Debian installer, with a few *buntu
flavored tweaks such as color scheme ... looks like they're no longer
doing those in general, however their "server" install images still use
the Debian installer.
*buntu's current recommended minimum RAM: 2 GiB
Debian's:
Install Type RAM (minimum) RAM (recommended)
No desktop 128 MiB 512 MiB
With Desktop 256 MiB 1 GiB
--
You received this message because you are subscribed to the Google Groups "BerkeleyLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to berkeleylug+unsubscribe@googlegroups.com.
To post to this group, send email to berkeleylug@googlegroups.com.
Visit this group at https://groups.google.com/group/berkeleylug.
For more options, visit https://groups.google.com/d/optout.