Skip to contentSkip to conversation

mem=64M, mem=128M, mem=ANYTHING ignored??

uml-devel roland 2 participants 2 messages May 22, 2004 4 messages not in the archive User-mode Linux (UML)

lore
Share & tools
lore

roland

author
#4 lore raw
In reply to a message not in the archive

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" <[email protected]>
To: <[email protected]>
Sent: Friday, May 21, 2004 11:22 PM
Subject: Re: [uml-user] mem=64M, mem=128M, mem=ANYTHING ignored??

Quoted 63 lines

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" <[email protected]>
To: "uml" <[email protected]>
Cc: <[email protected]>
Sent: Friday, May 21, 2004 1.47 PM
Subject: Re: [uml-user] mem=64M, mem=128M, mem=ANYTHING ignored??

Quoted 12 lines · uml
Quoted 4 lines

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

Quoted 9 lines

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

Quoted 11 lines

-------------------------------------------------------
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Quoted 10 lines

-------------------------------------------------------
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 [email protected]
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 [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#5 lore raw
Quoted 5 lines · roland

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.

Quoted 3 lines

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel