LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-23-2005, 11:40 PM   #31
lokee
Member
 
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Rep: Reputation: 30

Hi,
Congratz for learning to compile the kernel. That'll make things easier.
BUT, you seem to have missed some more posts.
Héhé.
No prob, you've just answered my question...
Ok, download this:
http://laika.g.la/dropbox/1g_lowmem1_i386.diff

You mentioned a how-to... Apply what it says.
If that doesn't work/ Or you don't understand what to do, tell me about it.

Remember to check the 1G Lowmem option in kconfig, gconfig or whatever you use.

PS: Himem is EVIL

Basically it creates overhead. (Meaning that the time the system takes to manage the memory increases)

Last edited by lokee; 03-23-2005 at 11:42 PM.
 
Old 03-24-2005, 12:18 AM   #32
Archalien
LQ Newbie
 
Registered: Feb 2005
Posts: 16

Original Poster
Rep: Reputation: 0
Well the problem is, after modifying the EXTRAVERSION in the Makefile it skips to "make menuconfig" then the "how to" simply states: "this is when you apply patches- if your brave" and then skips to the next step of kernel compilation and does not have instructions on patching it.

I assume you patch b4 "make menuconfig" so that you can select the option in menuconfig.....
I assume Ill need 2 things then:
1- info on what needs modification in the patch to match my kernel
2- syntax to apply the patch

I have tried a few different searches on patching but have yet to find an adequate source to explain what I need to do- yet.
 
Old 03-24-2005, 01:12 AM   #33
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
If your desire is to have your system recognize 1G of RAM, you might just consider enabling high mem during the kernel recompile. Why make things more difficult than they need to be?

This Gentoo forum post does a great job explaining some basic facts about Linux memory management, and acknowledges that while there "theoretically" may be some additional overhead using high mem, "there is no practical difference". Good luck with it -- J.W.

Last edited by J.W.; 03-24-2005 at 01:16 AM.
 
Old 03-24-2005, 11:16 AM   #34
lokee
Member
 
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Rep: Reputation: 30
Ok,
JW has a point, but Hey, rooting out this (theorical) source of overhead is always good.
And if you've already compiled the kernel, patching should be so, so easy.
Why not do it... If it's so easy(And there's no downside).

To patch the kernel' source:
Code:
patch -p1 < 1g_lowmem1_i386.diff
While in the kernel's source directory.

Let me explain:
-"patch" is the basic patching program.
-"-p[NUM]" is an option to determine the path(Basically).
Why do we need this? Well the path of the file requiring updating in the patch is: "linux-2.6.10-ck7/arch/i386/Kconfig", but you don't use version "linux-2.6.10-ck7", so we skip that part so the path becomes "arch/i386/Kconfig". (That's why you need to be already in the kernelsrc dir)
-"< 1g_lowmem1_i386.diff" is just the passing of the file to the patch utility.
 
Old 03-24-2005, 11:28 AM   #35
Archalien
LQ Newbie
 
Registered: Feb 2005
Posts: 16

Original Poster
Rep: Reputation: 0
thanks lokee, iit would have been nice if JW had read the thread instead of the last post...

while marginal overhead may be the norm, it is not the case in my situation

Simple installs of several current distros taking 1-3 hours instead of 15 minutes, and OS boot times of up to 1 hour instead of 2 minutes, 20 seconds to bring up a console window in OS, these are much more than marginal overhead.

At this point using the lomem only kernel will be just fine for my purposes as the OS runs fine albeit at the loss of some top end ram Ill rarely ever touch, on the other hand Ive come this far, in the sake of learning I might as well go all the way and try out the patch.

Lokee Im still curious as to what changes I need to make in the patch to reflect my kernel/distro?
 
Old 03-24-2005, 03:00 PM   #36
lokee
Member
 
Registered: Feb 2003
Distribution: Gentoo
Posts: 381

Rep: Reputation: 30
Nothing, it's been taken care of. Just execute the command I gave you in the last post:
And voila!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RAM: Does linux require as much ram as Windows XP? hanzj Linux - Newbie 48 04-18-2007 12:14 AM
Buying RAM - must match old RAM? slackaddict Linux - Hardware 5 11-12-2005 01:38 PM
Win98SE Pentium166MMX/64MB RAM vs Linux AthlonXP+ 3000/512MB RAM : Lucent LT WinModem t3gah Linux - Software 2 04-22-2005 01:01 PM
where did my ram go? nakkaya Linux - Hardware 14 02-28-2003 02:08 AM
ram on it's way spooge Linux - Hardware 5 02-27-2003 07:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:21 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