From: Richard Weinberger <richard@nod.at>
To: "Toralf Förster" <toralf.foerster@gmx.de>
Cc: Daniel Walter <sahne@0x90.at>,
UML devel <user-mode-linux-devel@lists.sourceforge.net>
Subject: Re: [uml-devel] was is the max. memory for a 32 bit UML decreased ?
Date: Sat, 10 Jan 2015 19:16:54 +0100 [thread overview]
Message-ID: <54B16C96.2020809@nod.at> (raw)
In-Reply-To: <54B16B41.7050302@gmx.de>
Am 10.01.2015 um 19:11 schrieb Toralf Förster:
> On 01/10/2015 06:45 PM, Richard Weinberger wrote:
>> Am 10.01.2015 um 18:37 schrieb Toralf Förster:
>>> On 01/10/2015 06:25 PM, Richard Weinberger wrote:
>>>> Am 10.01.2015 um 17:08 schrieb Toralf Förster:
>>>>> yes, it never worked with values above 2026M (tested at an old ThinkPad T420, running a 32 bit Gentoo Linux with host kernel 3.17.4 )
>>>>
>>>> The theoretical max. was always 2GiB due to the limited address space on ia32.
>>>> 2GiB - UML binary - ASLR overhead/padding is what you can use.
>>>> But the "write: File too large" issue is something new. I bet it origins from tmpfs or shm on the host side.
>>>>
>>>> Thanks,
>>>> //richard
>>>>
>>> Well, I already had explicitly to define the mount, b/c Gentoo's default is "noexec":
>>>
>>> tfoerste@n22 ~ $ mount | grep shm
>>> shm on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)
>>
>> Can it carry a 2GiB file?
>>
>
> Ick, good hint, I set now the size to 3 GB :
> tfoerste@t44 ~ $ ssh tfoerste@n22 grep shm /etc/fstab
> shm /dev/shm tmpfs nodev,nosuid,size=3G
>
> and tried after re-mounting with 2026M, but got :
>
> $ start_uml.sh -r trinity
> + /home/tfoerste/devel/linux/linux earlyprintk ubda=/home/tfoerste/virtual/uml/trinity ubdb=/mnt/ramdisk/trinity_swap eth0=tuntap,tap0,72:ef:3d:9f:c3:5a mem=2026M con0=fd:0,fd:1 con=pts umid=uml_trinity rootfstype=ext4 softlockup_all_cpu_backtrace=1
> Locating the bottom of the address space ... 0x1000
> Locating the top of the address space ... 0xc0000000
> Core dump limits :
> soft - 0
> hard - NONE
> Checking that ptrace can change system call numbers...OK
> Checking syscall emulation patch for ptrace...OK
> Checking advanced syscall emulation patch for ptrace...OK
> Checking environment variables for a tempdir...none found
> Checking if /dev/shm is on tmpfs...OK
> Checking PROT_EXEC mmap in /dev/shm...OK
> Checking for the skas3 patch in the host:
> - /proc/mm...not found: No such file or directory
> - PTRACE_FAULTINFO...not found
> - PTRACE_LDT...not found
> UML running in SKAS0 mode
> Adding 13238272 bytes to physical memory to account for exec-shield gap
> Kernel virtual memory size shrunk to 944766976 bytes
UML seems only be to able to use 901MiB.
> /home/tfoerste/workspace/bin/start_uml.sh: line 115: 4195 Segmentation fault $LINUX earlyprintk ubda=$ROOTFS ubdb=$SWAP eth0=$NET mem=$MEM $TTY umid=uml_$NAME rootfstype=ext4 "$ARGS"
> + RC=139
> + set +x
>
>
> Nevertheless I tried again, it worked now. The limit is now 2031M as far as I can tell.
Above you wrote 2026MiB?!
Does it work or not? /me us confused.
BTW: Due to ASLR the limit will be still fuzzy.
We definitely need to add more tests into UML to detect too small tmpfs mounts.
Thanks,
//richard
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
prev parent reply other threads:[~2015-01-10 18:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-24 20:52 [uml-devel] was is the max. memory for a 32 bit UML decreased ? Toralf Förster
2015-01-05 23:45 ` Richard Weinberger
2015-01-10 14:07 ` Toralf Förster
[not found] ` <54B1329B.6060708@nod.at>
2015-01-10 16:08 ` Toralf Förster
2015-01-10 17:25 ` Richard Weinberger
2015-01-10 17:37 ` Toralf Förster
[not found] ` <54B1652E.50605@nod.at>
2015-01-10 18:11 ` Toralf Förster
2015-01-10 18:16 ` Richard Weinberger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54B16C96.2020809@nod.at \
--to=richard@nod.at \
--cc=sahne@0x90.at \
--cc=toralf.foerster@gmx.de \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.