LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-19-2019, 07:12 AM   #1
tramtrist
Member
 
Registered: Jul 2018
Location: Cincinnati USA
Distribution: Slackware
Posts: 535

Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327
Question Installing with less than 1GB RAM


I was screwing around with a VM and tried to install slackware-current (non64) with 128/256MB of RAM.
Kernel Panic with 'deadlocked' memory error. Is this normal? Once I upped the RAM to 1GB everything was fine.
Perhaps booting with some kernel parameters from the minimum install ISO would help?
No big deal just curious. Some people like to use Slack on older machines with a lot less RAM
 
Old 08-19-2019, 07:50 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Here the installer for Slacware64-14.2 works with 256M in a Qemu VM. From there you can set up a swap partition before installing.
 
Old 08-19-2019, 08:02 AM   #3
bifferos
Member
 
Registered: Jul 2009
Posts: 401

Rep: Reputation: 149Reputation: 149
I can only speak for 14.2 x64, because that's what I experimented on in VirtualBox but in https://docs.slackware.com/howtos:mi...slackware_tips it says:

Quote:
To run the installer with the huge kernel you will require 206MB
I'd welcome the updated figure for -current to add to that guide, if you can be bothered to work out what it is .

How low do you want to go? You won't need the same amount of memory for first boot, because a lot is used up by the initrd during install.
 
Old 08-19-2019, 11:59 AM   #4
akimmet
Member
 
Registered: Jul 2018
Location: NW Ohio, USA
Distribution: Slackware64 -current
Posts: 62

Rep: Reputation: 62
I installed 14.2 on a Pentium3 with 512Mb of RAM, so it is possible. I don't recall running into any issues regarding installation.
 
Old 08-19-2019, 12:14 PM   #5
tramtrist
Member
 
Registered: Jul 2018
Location: Cincinnati USA
Distribution: Slackware
Posts: 535

Original Poster
Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327
I'll try messing around with the RAM setting today and find out when the Kernel chokes. Again this was -current and it failed in the installer boot before I could ever get to a prompt. Some time after decompressing the initrd. Will check back in later about it.
 
1 members found this post helpful.
Old 08-19-2019, 12:39 PM   #6
bifferos
Member
 
Registered: Jul 2009
Posts: 401

Rep: Reputation: 149Reputation: 149
Quote:
Originally Posted by tramtrist View Post
I'll try messing around with the RAM setting today and find out when the Kernel chokes. Again this was -current and it failed in the installer boot before I could ever get to a prompt. Some time after decompressing the initrd. Will check back in later about it.
That will be awesome, thanks!
 
Old 08-19-2019, 04:11 PM   #7
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
The Slackware Slackware-HOWTO, Hardware Requirements, states:

"128 megabytes (128MB) or more of RAM. If you have less RAM than this, you might still be able to install, but if so don't expect the best possible experience."

Years ago when distro design started presuming lots of modern RAM, I would temporarily move a hard disk (HD) to another system with sufficient RAM and bus speed. I would disconnect the system HD and install the distro to the temporary HD. Before powering down I would remove /etc/udev/rules.d/70-persistent-net.rules and then return the temporary HD to the original system.

Playing with VMs means lots of latitude to experiment. Install with sufficient RAM. Then experiment with how little RAM suffices before experiencing degrees of pain.

If the host system has limited RAM, a desire to limit the RAM in the VM is expected. I remember my early days of using VMs and had the same issue. I would allow sufficient RAM to install and thereafter reduce the allocated RAM on the VM.

I maintain some old Windows VMs for archival reasons. One VM is for NT4 with 128 MB RAM and two W2K systems with 256 MB RAM. The systems are really fast on my modern 4-core.

Another idea to consider with limited RAM is use 32-bit distros. Thankfully Slackware still provides full support for 32-bit. I have two old bare-metals with Slackware 14.1 32-bit installed. One system has only 256 MB RAM. On bare-metal the system is sluggish but in a VM the system would scream.

The kernel supports a mem parameter that can help simulate limited RAM. For example mem=xxM, where xx is the amount of RAM.

Last edited by upnort; 08-19-2019 at 04:13 PM.
 
Old 08-19-2019, 04:36 PM   #8
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
This thread makes me feel old, having used a computer with 64K of RAM.
 
Old 08-19-2019, 04:46 PM   #9
bifferos
Member
 
Registered: Jul 2009
Posts: 401

Rep: Reputation: 149Reputation: 149
Quote:
Originally Posted by Didier Spaier View Post
This thread makes me feel old, having used a computer with 64K of RAM.
Well Didier feel old no longer. My first computer had 1k: https://en.wikipedia.org/wiki/ZX81
Santa neglected to deliver it with the 16k ram pack, much to my annoyance .
 
Old 08-19-2019, 05:07 PM   #10
tramtrist
Member
 
Registered: Jul 2018
Location: Cincinnati USA
Distribution: Slackware
Posts: 535

Original Poster
Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327
OK I just walked through a bunch of memory settings
Everything before 384MB raised a kernel panic on boot right after or during "trying to unpack rootfs on initramfs"
When I used 384MB the installer would boot to command prompt.
Can someone try this on qemu or virtualbox to see if it happens to them? Again, Slackware -Current non 64bit.

Thanks,
 
1 members found this post helpful.
Old 08-19-2019, 06:26 PM   #11
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
Quote:
Can someone try this on qemu or virtualbox to see if it happens to them? Again, Slackware -Current non 64bit.
VirtualBox 5.28, 14.2 32-bit. With less than 236 MB RAM I experienced a kernel panic with the install ISO. After a full install I reduced RAM to 64 MB and the system booted. Running the free command indicated a system running with 45 MB of RAM.

I did not test a generic kernel.

Perhaps the Slackware-HOWTO, Hardware Requirements, should read:

"Installation requires 256 megabytes (256MB) or more of RAM...."

Last edited by upnort; 08-19-2019 at 11:42 PM.
 
1 members found this post helpful.
Old 08-20-2019, 05:55 AM   #12
bifferos
Member
 
Registered: Jul 2009
Posts: 401

Rep: Reputation: 149Reputation: 149
Quote:
Originally Posted by upnort View Post
VirtualBox 5.28, 14.2 32-bit. With less than 236 MB RAM..
In this case I think I need to re-run my experiment with 64-bit. This should get a bit easier once I iron out all the issues with vagaslack.
 
Old 08-20-2019, 06:08 AM   #13
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by tramtrist View Post
When I used 384MB the installer would boot to command prompt.
Can someone try this on qemu or virtualbox to see if it happens to them? Again, Slackware -Current non 64bit.
There IS quite a difference between 14.2 (4.4 kernel) and -current (4.19) in memory requirements:
if I take the "generic" kernel (that will need a initrd, but then the installer will need an initramfs anyway):
Code:
-r--r--r-- 1 hartman beheer 4273252 2019-08-11 21:40:18 kernel-generic-4.4.189-i586-1.txz
for 14.2, but
-rw-r--r-- 1 hartman beheer 5529072 2019-08-20 13:05:02 kernel-generic-4.19.67-i586-1.txz
for -current (both 32-bit version)
On top of the kernel come the "needed modules" for your system and the initramfs for the root fs to run the installer from. And note that that is the compressed kernel, in-memory it will be quite a bit larger.
 
Old 08-20-2019, 10:23 AM   #14
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
Quote:
There IS quite a difference between 14.2 (4.4 kernel) and -current (4.19) in memory requirements:
Okeydokey. Scrub the 14.2 test. I ran another VirtualBox 32-bit VM with Current. I could not boot the install disk with less than 335 MB RAM.

I did not test bare-metal.

Edit: A quick bare-metal test with Current 32-bit shows the same results. Running hugesmp.s mem=336M booted successfully. With mem=335 the system hung. No panic, just hung. The not-bleeding-edge test machine:

ASUS M3N78-EM motherboard Rev 1.01G
AMD 5050e 2.6 GHz Dual Core CPU
8 GB PC-5300 667 MHz DDR2 RAM
Nvidia MCP78S controller
On-board video: GeForce 8300

Last edited by upnort; 08-20-2019 at 11:00 AM.
 
Old 08-20-2019, 11:25 AM   #15
tramtrist
Member
 
Registered: Jul 2018
Location: Cincinnati USA
Distribution: Slackware
Posts: 535

Original Poster
Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327
Yeah based on this thread and what I've seen, loading the modules seems tobe where things explode violently. Good job on narrowing down the memory to 335 upnort

I'll test that out myself tonight to confirm.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tablet - 1GB RAM or 2GB RAM ? snowmagician Linux - General 12 04-07-2017 04:34 PM
What Distro's take up less than 1GB installed? linus72 Linux - Newbie 5 02-06-2009 08:15 PM
Do not seem to be able to use more than 1GB RAM surajc Linux - Kernel 6 10-13-2006 08:55 PM
How to upgarde kernel to recognise more than 1Gb ram garyobo Linux - Hardware 1 02-25-2004 05:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration