Christoph Fassbach
2005-Nov-09 15:12 UTC
[Wine] wine on AMD64 in an IA32 chroot environment
Hi, I have got a problem with wine running on an AMD64 64-Bit linux running in an IA32 chroot environment. I used an extra-partition for the IA32-chroot environment. If I boot into this 32-Bit Linux directly, wine runs Ultima Online quite nice. But if I boot into the 64-Bit Linux and then chroot to the 32-Bit environment, Ultima Online exits with an error and reports that there is not enough memory. Well, I use these lines in my fstab to setup the chroot, while /mnt/sda7 holds the extra partition: #x86 32 chroot /home /mnt/sda7/home none bind 0 0 /tmp /mnt/sda7/tmp none bind 0 0 /dev /mnt/sda7/dev none rbind 0 0 /mnt /mnt/sda7/mnt none bind 0 0 /sys /mnt/sda7/sys none bind 0 0 /proc /mnt/sda7/proc none bind 0 0 /var/tmp /mnt/sda7/var/tmp none bind 0 0 While reading through the strace report, I found an node, that wine opens /proc/meminfo . Running in AMD64 mode, it looks like MemTotal: 1026384 kB MemFree: 699820 kB Buffers: 9696 kB Cached: 175928 kB SwapCached: 0 kB Active: 179072 kB Inactive: 106668 kB HighTotal: 0 kB HighFree: 0 kB LowTotal: 1026384 kB LowFree: 699820 kB SwapTotal: 7341664 kB SwapFree: 7341664 kB Dirty: 0 kB Writeback: 0 kB Mapped: 150184 kB Slab: 18604 kB CommitLimit: 7854856 kB Committed_AS: 208572 kB PageTables: 4452 kB VmallocTotal: 34359738367 kB VmallocUsed: 299520 kB VmallocChunk: 34359438331 kB On an IA32 kernel, it looks like: MemTotal: 1036104 kB MemFree: 494268 kB Buffers: 23736 kB Cached: 414612 kB SwapCached: 0 kB Active: 267004 kB Inactive: 242136 kB HighTotal: 131008 kB HighFree: 252 kB LowTotal: 905096 kB LowFree: 494016 kB SwapTotal: 2000084 kB SwapFree: 2000084 kB Dirty: 60 kB Writeback: 0 kB Mapped: 117284 kB Slab: 20232 kB Committed_AS: 156416 kB PageTables: 1680 kB VmallocTotal: 114680 kB VmallocUsed: 23568 kB VmallocChunk: 88052 kB May this difference cause wine to report a wrong memory size to Ultima Online? Does anybody know a work-around for my problem? To whom I must talk about this? I suppose I need some help, please. Greetings, Christoph