FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Development

 
 
LinkBack Thread Tools
 
Old 05-14-2010, 12:47 PM
Ales Kozumplik
 
Default memory: decrease the GUI limits a bit.

---
anaconda | 2 +-
isys/isys.c | 1 +
isys/isys.h | 3 ++-
isys/isys.py | 1 +
4 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/anaconda b/anaconda
index b5532b0..af90e09 100755
--- a/anaconda
+++ b/anaconda
@@ -382,7 +382,7 @@ def check_memory(anaconda, opts, display_mode=None):

# override display mode if machine cannot nicely run X
if display_mode not in ('t', 'c') and not flags.usevnc:
- needed_ram = isys.MIN_GUI_RAM + extra_ram
+ needed_ram = needed_ram + isys.GUI_INSTALL_EXTRA_RAM

if not within_available_memory(needed_ram):
complain = _("You do not have enough RAM to use the graphical "
diff --git a/isys/isys.c b/isys/isys.c
index 409170b..ca3fb0d 100644
--- a/isys/isys.c
+++ b/isys/isys.c
@@ -313,6 +313,7 @@ void init_isys(void) {

PyDict_SetItemString(d, "MIN_RAM", PyInt_FromLong(MIN_RAM));
PyDict_SetItemString(d, "MIN_GUI_RAM", PyInt_FromLong(MIN_GUI_RAM));
+ PyDict_SetItemString(d, "GUI_INSTALL_EXTRA_RAM", PyInt_FromLong(GUI_INSTALL_EXTRA_RAM));
PyDict_SetItemString(d, "URL_INSTALL_EXTRA_RAM", PyInt_FromLong(URL_INSTALL_EXTRA_RAM));
PyDict_SetItemString(d, "EARLY_SWAP_RAM", PyInt_FromLong(EARLY_SWAP_RAM));
}
diff --git a/isys/isys.h b/isys/isys.h
index e3cb1fc..811b51b 100644
--- a/isys/isys.h
+++ b/isys/isys.h
@@ -21,8 +21,9 @@
#define H_ISYS

#define MIN_RAM 262144 // 256 MB
-#define MIN_GUI_RAM 524288 // 512 MB
+#define GUI_INSTALL_EXTRA_RAM 131072 // 128 MB
#define URL_INSTALL_EXTRA_RAM 131072 // 128 MB
+#define MIN_GUI_RAM MIN_RAM + GUI_INSTALL_EXTRA_RAM
#define EARLY_SWAP_RAM 524288

#define OUTPUT_TERMINAL "/dev/tty5"
diff --git a/isys/isys.py b/isys/isys.py
index 62010ff..cddb916 100755
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -62,6 +62,7 @@ mountCount = {}

MIN_RAM = _isys.MIN_RAM
MIN_GUI_RAM = _isys.MIN_GUI_RAM
+GUI_INSTALL_EXTRA_RAM = _isys.GUI_INSTALL_EXTRA_RAM
URL_INSTALL_EXTRA_RAM = _isys.URL_INSTALL_EXTRA_RAM
EARLY_SWAP_RAM = _isys.EARLY_SWAP_RAM

--
1.6.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 05-14-2010, 02:25 PM
Bill Nottingham
 
Default memory: decrease the GUI limits a bit.

Ales Kozumplik (akozumpl@redhat.com) said:
> diff --git a/isys/isys.h b/isys/isys.h
> index e3cb1fc..811b51b 100644
> --- a/isys/isys.h
> +++ b/isys/isys.h
> @@ -21,8 +21,9 @@
> #define H_ISYS
>
> #define MIN_RAM 262144 // 256 MB
> -#define MIN_GUI_RAM 524288 // 512 MB
> +#define GUI_INSTALL_EXTRA_RAM 131072 // 128 MB
> #define URL_INSTALL_EXTRA_RAM 131072 // 128 MB
> +#define MIN_GUI_RAM MIN_RAM + GUI_INSTALL_EXTRA_RAM
> #define EARLY_SWAP_RAM 524288

What evidence is there that this is enough?

Bill

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 05-17-2010, 08:42 AM
Ales Kozumplik
 
Default memory: decrease the GUI limits a bit.

On 05/14/2010 04:25 PM, Bill Nottingham wrote:



Ales Kozumplik (akozumpl@redhat.com) said:

diff --git a/isys/isys.h b/isys/isys.h
index e3cb1fc..811b51b 100644
--- a/isys/isys.h
+++ b/isys/isys.h
@@ -21,8 +21,9 @@
#define H_ISYS

#define MIN_RAM 262144 // 256 MB
-#define MIN_GUI_RAM 524288 // 512 MB
+#define GUI_INSTALL_EXTRA_RAM 131072 // 128 MB
#define URL_INSTALL_EXTRA_RAM 131072 // 128 MB
+#define MIN_GUI_RAM MIN_RAM + GUI_INSTALL_EXTRA_RAM
#define EARLY_SWAP_RAM 524288


What evidence is there that this is enough?

Bill



Good question! Simple answer: I tried and it is enough (more precisely:
I tried a GUI installation, over nfs, with LVM+encryption, on a 384 MB
virtual memory machine and got over the "Finding storage devices" step,
that's the most critical, because GUI is already up and we make the LVM
calls there)


More elaboratively: I had to increase the MIN_RAM couple weeks ago, see
fbe24fe21350eec043d3f8ad41c1908b0878114a on master (there's also a
similar patch for rhel6). The commit message shows some numbers too, but
all of that was only tested during text install. It's very difficult to
find out exactly how much X+metacity+gtk+other-desktop-crap will take
together. I assumed I'd keep that at 256 MB extra, but then Hans
complained he can install over http with GUI on 512 MB. So you will
notice that while I increased the MIN_RAM by 128 MB I am decreasing the
MIN_GUI_RAM by 128 MB now. This makes some sense: we are now running
network manager (and who knows what else) in both text and gui install
and that might use dynamic libraries that are later reused by the gui
components (while earlier those were only loaded when X/gtk started).


That's my theory anyways but my experience seems to support it.

Ales

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 05-17-2010, 07:46 PM
Dennis Gilmore
 
Default memory: decrease the GUI limits a bit.

On Monday 17 May 2010 03:42:04 am Ales Kozumplik wrote:
> On 05/14/2010 04:25 PM, Bill Nottingham wrote:
> > Ales Kozumplik (akozumpl@redhat.com) said:
> >> diff --git a/isys/isys.h b/isys/isys.h
> >> index e3cb1fc..811b51b 100644
> >> --- a/isys/isys.h
> >> +++ b/isys/isys.h
> >> @@ -21,8 +21,9 @@
> >>
> >> #define H_ISYS
> >>
> >> #define MIN_RAM 262144 // 256 MB
> >>
> >> -#define MIN_GUI_RAM 524288 // 512 MB
> >> +#define GUI_INSTALL_EXTRA_RAM 131072 // 128 MB
> >>
> >> #define URL_INSTALL_EXTRA_RAM 131072 // 128 MB
> >>
> >> +#define MIN_GUI_RAM MIN_RAM + GUI_INSTALL_EXTRA_RAM
> >>
> >> #define EARLY_SWAP_RAM 524288
> >
> > What evidence is there that this is enough?
> >
> > Bill
>
> Good question! Simple answer: I tried and it is enough (more precisely:
> I tried a GUI installation, over nfs, with LVM+encryption, on a 384 MB
> virtual memory machine and got over the "Finding storage devices" step,
> that's the most critical, because GUI is already up and we make the LVM
> calls there)
>
> More elaboratively: I had to increase the MIN_RAM couple weeks ago, see
> fbe24fe21350eec043d3f8ad41c1908b0878114a on master (there's also a
> similar patch for rhel6). The commit message shows some numbers too, but
> all of that was only tested during text install. It's very difficult to
> find out exactly how much X+metacity+gtk+other-desktop-crap will take
> together. I assumed I'd keep that at 256 MB extra, but then Hans
> complained he can install over http with GUI on 512 MB. So you will
> notice that while I increased the MIN_RAM by 128 MB I am decreasing the
> MIN_GUI_RAM by 128 MB now. This makes some sense: we are now running
> network manager (and who knows what else) in both text and gui install
> and that might use dynamic libraries that are later reused by the gui
> components (while earlier those were only loaded when X/gtk started).
>
> That's my theory anyways but my experience seems to support it.
>
> Ales

Not that it matters much i guess but doing a install on a sparc64 system with
384MB ram unless using a plan text install with the minimal package set i
always get the install failing with OOM errors. as soon as i use vnc even
with a minimal package set install fails


Dennis
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 05-18-2010, 06:42 AM
Ales Kozumplik
 
Default memory: decrease the GUI limits a bit.

On 05/17/2010 09:46 PM, Dennis Gilmore wrote:


Not that it matters much i guess but doing a install on a sparc64 system with
384MB ram unless using a plan text install with the minimal package set i
always get the install failing with OOM errors. as soon as i use vnc even
with a minimal package set install fails


Dennis



You are very right. We just discovered it yesterday with Zdenek Kabelac
that the memory requirements for different architectures are varying
tremendously! For instance PPC64 needs 1 gb to go through a gui install.
We didn't try on sparc but I am going to assume something similar
happens there if that's got 64 kbit pages. See

https://bugzilla.redhat.com/show_bug.cgi?id=559556

I am going to fix this accordingly on master and merge that for the
rhel6 if a bug is opened there.


Ales

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 09:33 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org