linux-um archives
 help / color / mirror / Atom feed
* [uml-devel] Re: [uml-user] mem=64M, mem=128M, mem=ANYTHING ignored??
       [not found]     ` <005001c43f79$bcfce6e0$dd02a8c0@ferraro>
@ 2004-05-22 13:01       ` roland
  2004-05-22 19:15         ` Michael Roth
  0 siblings, 1 reply; 2+ messages in thread
From: roland @ 2004-05-22 13:01 UTC (permalink / raw)
  To: uml, user-mode-linux-user; +Cc: user-mode-linux-devel, Jeff Dike

success, too.

the error definitely seems  to be a compile issue.
if i compile with -O2, uml just uses the 32M memory default
if i compile with -O1, uml uses the param "mem=..." the right way

furthermore, with O2
- there are left 5 "linux" processes running, after shutting down uml
- if i do a "killall linux" 2 of them being terminated, 3 still left running
  i need to kill them with "kill -9 pid"
- the terminal becomes unusable after shutdown - need to issue an "reset" on 
  that terminal to have it working right again

with O1
- there is only 1 "linux" process being left (still bad because i need to kill 
  that to boot again)
- the terminal behaves correctly after shutdown 

mhhh - don`t know how much "improvement" does "O2" in favour of "O1" - but
who should we ask now, to help hunting this "bug" ?
gcc folks ?

regards
roland




----- Original Message ----- 
From: "uml" <uml@dot1q.net>
To: <user-mode-linux-user@lists.sourceforge.net>
Sent: Friday, May 21, 2004 11:22 PM
Subject: Re: [uml-user] mem=64M, mem=128M, mem=ANYTHING ignored??


> SUCCESS.
> 
> I wish I had kept the original .config file that was giving me problems
> because I'd have run a diff against it to see what was throwing the errors.
> 
> I changed several things at once, however, so I am unsure as to what did it.
> I'm going to retrace through my steps to see if I can reproduce the error on
> this system and post what I discover here.  I'm going to try to
> reincorporate -O2 instead of using -O1 as well.
> 
> Additionally, the UML now shuts down cleanly without any extra 'linux'
> threads running.  Memory is recognized correctly as well and it's running a
> 2.6.6-1 uml kernel.
> 
> Thanks for the help and ideas, hopefully I'll be able to contribue some
> diagnostics for someone else in my position who's willing to search this
> group. =)
> 
> 
> ----- Original Message ----- 
> From: "Jeff Dike" <jdike@addtoit.com>
> To: "uml" <uml@dot1q.net>
> Cc: <user-mode-linux-user@lists.sourceforge.net>
> Sent: Friday, May 21, 2004 1.47 PM
> Subject: Re: [uml-user] mem=64M, mem=128M, mem=ANYTHING ignored??
> 
> 
> > On Fri, May 21, 2004 at 09:55:34AM -0400, uml wrote:
> > > On node 0 totalpages: 8192
> > >   DMA zone: 8192 pages, LIFO batch:2
> >
> > > Kernel command line: ubd0=cow1 mem=128M root=98:0
> >
> > Ummmm, strange.  It certainly works here:
> >
> > On node 0 totalpages: 32768
> >   DMA zone: 32768 pages, LIFO batch:8
> >
> > Kernel command line: ubd0=cow,/home/jdike/roots/debian_22 con0=fd:0,fd:1
> con1=none con=pts ssl=pts umid=debian mem=128M root=98:0
> >
> > That was with 2.6.6.  There are no obvious typos in your command line, but
> > it's giving you the default 32M.
> >
> > Can you show us the command line at the shell prompt?
> >
> > Jeff
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: Oracle 10g
> > Get certified on the hottest thing ever to hit the market... Oracle 10g.
> > Take an Oracle 10g class now, and we'll give you the exam FREE.
> > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> > _______________________________________________
> > User-mode-linux-user mailing list
> > User-mode-linux-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
> >
> >
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: Oracle 10g
> Get certified on the hottest thing ever to hit the market... Oracle 10g. 
> Take an Oracle 10g class now, and we'll give you the exam FREE.
> http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> _______________________________________________
> User-mode-linux-user mailing list
> User-mode-linux-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
> 


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [uml-devel] Re: [uml-user] mem=64M, mem=128M, mem=ANYTHING ignored??
  2004-05-22 13:01       ` [uml-devel] Re: [uml-user] mem=64M, mem=128M, mem=ANYTHING ignored?? roland
@ 2004-05-22 19:15         ` Michael Roth
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Roth @ 2004-05-22 19:15 UTC (permalink / raw)
  To: roland; +Cc: uml, user-mode-linux-user, user-mode-linux-devel, Jeff Dike

roland wrote:
> success, too.
> 
> the error definitely seems  to be a compile issue.
> if i compile with -O2, uml just uses the 32M memory default
> if i compile with -O1, uml uses the param "mem=..." the right way

I'm not sure and I'm to lazy to check this out, but IIRC I had the same 
problems using gcc-3.4.0.

> mhhh - don`t know how much "improvement" does "O2" in favour of "O1" - but
> who should we ask now, to help hunting this "bug" ?
> gcc folks ?

Maybe the gcc manual? RTFM? ;-)

http://gcc.gnu.org/onlinedocs/gcc-3.3.3/gcc/Optimize-Options.html

O1 Options:

-fdefer-pop  -fmerge-constants  -fthread-jumps  -floop-optimize 
-fcrossjumping  -fif-conversion  -fif-conversion2  -fdelayed-branch 
-fguess-branch-probability  -fcprop-registers

O2 Options (O1 options plus the following):

-fforce-mem  -foptimize-sibling-calls  -fstrength-reduce 
-fcse-follow-jumps  -fcse-skip-blocks  -frerun-cse-after-loop 
-frerun-loop-opt -fgcse  -fgcse-lm  -fgcse-sm 
-fdelete-null-pointer-checks  -fexpensive-optimizations  -fregmov 
-fschedule-insns  -fschedule-insns2  -fsched-interblock  -fsched-spec 
-fcaller-saves  -fpeephole2  -freorder-blocks  -freorder-functions 
-fstrict-aliasing  -falign-functions  -falign-jumps  -falign-loops 
-falign-labels

Note: First, gcc-3.4.0 is slighlty different. Second, if the problem 
states only with gcc-3.x (x>=1) and not with gcc-3.0.0 or gcc-2.x, then 
maybe the bug in uml is triggered by the opcode scheduler in the newer 
gcc. IIRC correctly, the scheduler changed somewhere in the gcc-3.x 
line. But as always, I'm not sure. ;-)


Michael Roth




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-05-22 19:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200405210556.i4L5uIX19375@lifewood.com>
     [not found] ` <004101c43f3b$497c26b0$dd02a8c0@ferraro>
     [not found]   ` <20040521174707.GA7508@ccure.user-mode-linux.org>
     [not found]     ` <005001c43f79$bcfce6e0$dd02a8c0@ferraro>
2004-05-22 13:01       ` [uml-devel] Re: [uml-user] mem=64M, mem=128M, mem=ANYTHING ignored?? roland
2004-05-22 19:15         ` Michael Roth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox