On Fri, Jul 22, 2005 at 08:18:13PM +0200, Blaisorblade wrote:
> On Friday 22 July 2005 18:53, Ruaidhri Power wrote:
> > > >   Kernel virtual memory size shrunk to 32505856 bytes
> 
> > > Ok, here it's going to use just 32M of kernel memory rather than 768M...
> > > Did it happen even before?
> 
> > I hadn't noticed that before, not sure what the problem is there.  That
> > figure is actually 31M rather than 32M - does that give a clue to the
> > cause?
> Doesn't this disappear when shutting off address space randomization?

No, unfortunately it doesn't.

> I don't care about the host, it's just UML to have problems with SMP and/or 
> HIGHMEM. Mainly, Uml is very slow with HIGHMEM, and doesn't need it a lot, 
> especially in SKAS mode...

I've tried with highmem enabled and disabled on both the host
(HIGHMEM4G=y) and the guest.  I get the same results with highmem either
enabled and disabled on the host (as you suggested above), but I checked
just to be sure.  I've removed extra lines and converted bytes to
megabytes.  First, here's the results with highmem disabled on the
guest:

  [EMAIL PROTECTED]:~$ /sbin/sysctl kernel.randomize_va_space
  kernel.randomize_va_space = 0
  [EMAIL PROTECTED]:~$ linux --showconfig | grep HIGHMEM
  # CONFIG_HIGHMEM is not set
  [EMAIL PROTECTED]:~$ linux mem=768M
  ...
  CONFIG_HIGHMEM not enabled - physical memory shrunk to 472M
  Kernel virtual memory size shrunk to 31M
  ...
  [EMAIL PROTECTED]:~$ linux mem=512M
  ...
  CONFIG_HIGHMEM not enabled - physical memory shrunk to 472M
  Kernel virtual memory size shrunk to 31M
  ...
  [EMAIL PROTECTED]:~$ linux mem=256M
  ...
  Kernel virtual memory size shrunk to 247MB
  ...
  [EMAIL PROTECTED]:~$ linux mem=128M
  ...
  [EMAIL PROTECTED]:~$

And now with highmem enabled on the guest:

  [EMAIL PROTECTED]:~$ /sbin/sysctl kernel.randomize_va_space
  kernel.randomize_va_space = 0
  [EMAIL PROTECTED]:~$ linux --showconfig | grep HIGHMEM
  CONFIG_HIGHMEM=y
  [EMAIL PROTECTED]:~$ linux mem=768M
  ...
  Kernel virtual memory size shrunk to 31M
  ...
  [EMAIL PROTECTED]:~$ linux mem=512M
  ...
  Kernel virtual memory size shrunk to 31M
  ...
  [EMAIL PROTECTED]:~$ linux mem=256M
  ...
  Kernel virtual memory size shrunk to 247M
  ...
  [EMAIL PROTECTED]:~$ linux mem=128M
  ...
  [EMAIL PROTECTED]:~$

Other details: the host has 1GB of memory, /tmp is tmpfs and there's a
1GB swap partition on the machine.

  [EMAIL PROTECTED]:~$ cat /proc/cpuinfo
  processor       : 0
  vendor_id       : GenuineIntel
  cpu family      : 15
  model           : 2
  model name      : Intel(R) Pentium(R) 4 CPU 2.00GHz
  stepping        : 4
  cpu MHz         : 1994.200
  cache size      : 512 KB
  fdiv_bug        : no
  hlt_bug         : no
  f00f_bug        : no
  coma_bug        : no
  fpu             : yes
  fpu_exception   : yes
  cpuid level     : 2
  wp              : yes
  flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
  bogomips        : 3932.16

I may try another host or guest distro if that might be causing the
problem, both are Debian sarge at the moment.

I've included the guest's .config and full output until init starts
below, just in case there's something helpful there.  Perhaps
KERNEL_HALF_GIGS should be raised?

  [EMAIL PROTECTED]:~$ grep HIGHMEM /boot/config-`uname -r`
  CONFIG_NOHIGHMEM=y
  # CONFIG_HIGHMEM4G is not set
  # CONFIG_HIGHMEM64G is not set
  [EMAIL PROTECTED]:~$ linux --showconfig | grep HIGHMEM
  # CONFIG_HIGHMEM is not set
  [EMAIL PROTECTED]:~$ linux ubd1=swap eth0=tuntap,,,x.x.x.29 mem=768M
  Checking for /proc/mm...found
  Checking for the skas3 patch in the host...found
  Checking PROT_EXEC mmap in /tmp...OK
  CONFIG_HIGHMEM not enabled - physical memory shrunk to 494927872 bytes
  Kernel virtual memory size shrunk to 32505856 bytes
  Linux version 2.6.12-bs7 ([EMAIL PROTECTED]) (gcc version 3.3.5 (Debian 
1:3.3.5-13)) #1 Mon Jul 25 13:31:10 IST 2005
  Built 1 zonelists
  Kernel command line: ubd1=swap eth0=tuntap,,,x.x.x.29 mem=768M root=98:0
  PID hash table entries: 2048 (order: 11, 32768 bytes)
  Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
  Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
  Memory: 471936k available
  Mount-cache hash table entries: 512
  Checking for host processor cmov support...Yes
  Checking for host processor xmm support...No
  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 that host ptys support output SIGIO...Yes
  Checking that host ptys support SIGIO on close...No, enabling workaround
  Checking for /dev/anon on the host...Not available (open failed with errno 2)
  NET: Registered protocol family 16
  mconsole (version 2) initialized on /home/ruaidhri/.uml/InHAnn/mconsole
  Netdevice 0 : TUN/TAP backend - IP = x.x.x.29
  devfs: 2004-01-31 Richard Gooch ([EMAIL PROTECTED])
  devfs: boot_options: 0x0
  io scheduler noop registered
  io scheduler anticipatory registered
  io scheduler deadline registered
  io scheduler cfq registered
  loop: loaded (max 8 devices)
  tun: Universal TUN/TAP device driver, 1.6
  tun: (C) 1999-2004 Max Krasnyansky <[EMAIL PROTECTED]>
  NET: Registered protocol family 2
  IP: routing cache hash table of 4096 buckets, 32Kbytes
  TCP established hash table entries: 16384 (order: 5, 131072 bytes)
  TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
  TCP: Hash tables configured (established 16384 bind 16384)
  ip_tables: (C) 2000-2002 Netfilter core team
  NET: Registered protocol family 1
  NET: Registered protocol family 10
  IPv6 over IPv4 tunneling driver
  ip6_tables: (C) 2000-2002 Netfilter core team
  NET: Registered protocol family 17
  Initialized stdio console driver
  Console initialized on /dev/tty0
  Initializing software serial port version 1
   /dev/ubd/disc0: unknown partition table
   /dev/ubd/disc1: unknown partition table
  kjournald starting.  Commit interval 5 seconds
  EXT3-fs: mounted filesystem with ordered data mode.
  VFS: Mounted root (ext3 filesystem) readonly.
  line_ioctl: tty0: ioctl KDSIGACCEPT called
  INIT: version 2.86 booting

Guest's .config follows:

  #
  # Automatically generated make config: don't edit
  # Linux kernel version: 2.6.12-bs7
  # Mon Jul 25 13:21:48 2005
  #
  CONFIG_GENERIC_HARDIRQS=y
  CONFIG_UML=y
  CONFIG_MMU=y
  CONFIG_UID16=y
  CONFIG_RWSEM_GENERIC_SPINLOCK=y
  CONFIG_GENERIC_CALIBRATE_DELAY=y
  
  #
  # UML-specific options
  #
  CONFIG_MODE_TT=y
  CONFIG_MODE_SKAS=y
  CONFIG_UML_X86=y
  # CONFIG_64BIT is not set
  CONFIG_TOP_ADDR=0xc0000000
  # CONFIG_3_LEVEL_PGTABLES is not set
  CONFIG_ARCH_HAS_SC_SIGNALS=y
  CONFIG_ARCH_REUSE_HOST_VSYSCALL_AREA=y
  CONFIG_LD_SCRIPT_STATIC=y
  CONFIG_NET=y
  CONFIG_BINFMT_ELF=y
  # CONFIG_BINFMT_MISC is not set
  CONFIG_HOSTFS=y
  # CONFIG_HPPFS is not set
  CONFIG_MCONSOLE=y
  CONFIG_MCONSOLE_EXEC=y
  CONFIG_MAGIC_SYSRQ=y
  # CONFIG_HOST_2G_2G is not set
  # CONFIG_SMP is not set
  CONFIG_NEST_LEVEL=0
  CONFIG_KERNEL_HALF_GIGS=1
  # CONFIG_HIGHMEM is not set
  CONFIG_KERNEL_STACK_ORDER=2
  CONFIG_UML_REAL_TIME_CLOCK=y
  
  #
  # Code maturity level options
  #
  CONFIG_EXPERIMENTAL=y
  CONFIG_CLEAN_COMPILE=y
  CONFIG_BROKEN_ON_SMP=y
  CONFIG_INIT_ENV_ARG_LIMIT=32
  
  #
  # General setup
  #
  CONFIG_LOCALVERSION=""
  CONFIG_SWAP=y
  CONFIG_SYSVIPC=y
  # CONFIG_POSIX_MQUEUE is not set
  # CONFIG_BSD_PROCESS_ACCT is not set
  CONFIG_SYSCTL=y
  # CONFIG_AUDIT is not set
  # CONFIG_HOTPLUG is not set
  # CONFIG_KOBJECT_UEVENT is not set
  # CONFIG_IKCONFIG is not set
  # CONFIG_EMBEDDED is not set
  CONFIG_KALLSYMS=y
  # CONFIG_KALLSYMS_EXTRA_PASS is not set
  CONFIG_PRINTK=y
  CONFIG_BUG=y
  CONFIG_BASE_FULL=y
  CONFIG_FUTEX=y
  CONFIG_EPOLL=y
  CONFIG_SHMEM=y
  CONFIG_CC_ALIGN_FUNCTIONS=0
  CONFIG_CC_ALIGN_LABELS=0
  CONFIG_CC_ALIGN_LOOPS=0
  CONFIG_CC_ALIGN_JUMPS=0
  # CONFIG_TINY_SHMEM is not set
  CONFIG_BASE_SMALL=0
  
  #
  # Loadable module support
  #
  CONFIG_MODULES=y
  CONFIG_MODULE_UNLOAD=y
  # CONFIG_MODULE_FORCE_UNLOAD is not set
  CONFIG_OBSOLETE_MODPARM=y
  # CONFIG_MODVERSIONS is not set
  # CONFIG_MODULE_SRCVERSION_ALL is not set
  CONFIG_KMOD=y
  
  #
  # Generic Driver Options
  #
  CONFIG_STANDALONE=y
  CONFIG_PREVENT_FIRMWARE_BUILD=y
  # CONFIG_FW_LOADER is not set
  
  #
  # Character Devices
  #
  CONFIG_STDERR_CONSOLE=y
  CONFIG_STDIO_CONSOLE=y
  CONFIG_SSL=y
  CONFIG_NULL_CHAN=y
  # CONFIG_PORT_CHAN is not set
  CONFIG_PTY_CHAN=y
  CONFIG_TTY_CHAN=y
  CONFIG_XTERM_CHAN=y
  CONFIG_NOCONFIG_CHAN=y
  CONFIG_CON_ZERO_CHAN="fd:0,fd:1"
  CONFIG_CON_CHAN="pts"
  CONFIG_SSL_CHAN="pts"
  CONFIG_UNIX98_PTYS=y
  # CONFIG_LEGACY_PTYS is not set
  # CONFIG_WATCHDOG is not set
  # CONFIG_UML_SOUND is not set
  # CONFIG_SOUND is not set
  # CONFIG_HOSTAUDIO is not set
  # CONFIG_UML_RANDOM is not set
  # CONFIG_MMAPPER is not set
  
  #
  # Block devices
  #
  CONFIG_BLK_DEV_UBD=y
  # CONFIG_BLK_DEV_UBD_SYNC is not set
  CONFIG_BLK_DEV_COW_COMMON=y
  CONFIG_BLK_DEV_LOOP=y
  # CONFIG_BLK_DEV_CRYPTOLOOP is not set
  # CONFIG_BLK_DEV_NBD is not set
  # CONFIG_BLK_DEV_RAM is not set
  CONFIG_BLK_DEV_RAM_COUNT=16
  CONFIG_INITRAMFS_SOURCE=""
  # CONFIG_LBD is not set
  
  #
  # IO Schedulers
  #
  CONFIG_IOSCHED_NOOP=y
  CONFIG_IOSCHED_AS=y
  CONFIG_IOSCHED_DEADLINE=y
  CONFIG_IOSCHED_CFQ=y
  # CONFIG_ATA_OVER_ETH is not set
  CONFIG_NETDEVICES=y
  
  #
  # UML Network Devices
  #
  CONFIG_UML_NET=y
  CONFIG_UML_NET_ETHERTAP=y
  CONFIG_UML_NET_TUNTAP=y
  # CONFIG_UML_NET_SLIP is not set
  CONFIG_UML_NET_DAEMON=y
  CONFIG_UML_NET_MCAST=y
  # CONFIG_UML_NET_PCAP is not set
  # CONFIG_UML_NET_SLIRP is not set
  
  #
  # Networking support
  #
  
  #
  # Networking options
  #
  CONFIG_PACKET=y
  # CONFIG_PACKET_MMAP is not set
  CONFIG_UNIX=y
  # CONFIG_NET_KEY is not set
  CONFIG_INET=y
  CONFIG_IP_MULTICAST=y
  # CONFIG_IP_ADVANCED_ROUTER is not set
  # CONFIG_IP_PNP is not set
  # CONFIG_NET_IPIP is not set
  # CONFIG_NET_IPGRE is not set
  # CONFIG_IP_MROUTE is not set
  # CONFIG_ARPD is not set
  # CONFIG_SYN_COOKIES is not set
  # CONFIG_INET_AH is not set
  # CONFIG_INET_ESP is not set
  # CONFIG_INET_IPCOMP is not set
  # CONFIG_INET_TUNNEL is not set
  # CONFIG_IP_TCPDIAG is not set
  # CONFIG_IP_TCPDIAG_IPV6 is not set
  
  #
  # IP: Virtual Server Configuration
  #
  # CONFIG_IP_VS is not set
  CONFIG_IPV6=y
  # CONFIG_IPV6_PRIVACY is not set
  # CONFIG_INET6_AH is not set
  # CONFIG_INET6_ESP is not set
  # CONFIG_INET6_IPCOMP is not set
  # CONFIG_INET6_TUNNEL is not set
  # CONFIG_IPV6_TUNNEL is not set
  CONFIG_NETFILTER=y
  # CONFIG_NETFILTER_DEBUG is not set
  
  #
  # IP: Netfilter Configuration
  #
  # CONFIG_IP_NF_CONNTRACK is not set
  # CONFIG_IP_NF_CONNTRACK_MARK is not set
  # CONFIG_IP_NF_QUEUE is not set
  CONFIG_IP_NF_IPTABLES=y
  # CONFIG_IP_NF_MATCH_LIMIT is not set
  # CONFIG_IP_NF_MATCH_IPRANGE is not set
  # CONFIG_IP_NF_MATCH_MAC is not set
  # CONFIG_IP_NF_MATCH_PKTTYPE is not set
  # CONFIG_IP_NF_MATCH_MARK is not set
  # CONFIG_IP_NF_MATCH_MULTIPORT is not set
  # CONFIG_IP_NF_MATCH_TOS is not set
  # CONFIG_IP_NF_MATCH_RECENT is not set
  # CONFIG_IP_NF_MATCH_ECN is not set
  # CONFIG_IP_NF_MATCH_DSCP is not set
  # CONFIG_IP_NF_MATCH_AH_ESP is not set
  # CONFIG_IP_NF_MATCH_LENGTH is not set
  # CONFIG_IP_NF_MATCH_TTL is not set
  # CONFIG_IP_NF_MATCH_TCPMSS is not set
  # CONFIG_IP_NF_MATCH_OWNER is not set
  # CONFIG_IP_NF_MATCH_ADDRTYPE is not set
  # CONFIG_IP_NF_MATCH_REALM is not set
  # CONFIG_IP_NF_MATCH_SCTP is not set
  # CONFIG_IP_NF_MATCH_COMMENT is not set
  # CONFIG_IP_NF_MATCH_HASHLIMIT is not set
  CONFIG_IP_NF_FILTER=y
  CONFIG_IP_NF_TARGET_REJECT=y
  CONFIG_IP_NF_TARGET_LOG=y
  # CONFIG_IP_NF_TARGET_ULOG is not set
  # CONFIG_IP_NF_TARGET_TCPMSS is not set
  # CONFIG_IP_NF_MANGLE is not set
  # CONFIG_IP_NF_RAW is not set
  # CONFIG_IP_NF_ARPTABLES is not set
  
  #
  # IPv6: Netfilter Configuration (EXPERIMENTAL)
  #
  # CONFIG_IP6_NF_QUEUE is not set
  CONFIG_IP6_NF_IPTABLES=y
  # CONFIG_IP6_NF_MATCH_LIMIT is not set
  # CONFIG_IP6_NF_MATCH_MAC is not set
  # CONFIG_IP6_NF_MATCH_RT is not set
  # CONFIG_IP6_NF_MATCH_OPTS is not set
  # CONFIG_IP6_NF_MATCH_FRAG is not set
  # CONFIG_IP6_NF_MATCH_HL is not set
  # CONFIG_IP6_NF_MATCH_MULTIPORT is not set
  # CONFIG_IP6_NF_MATCH_OWNER is not set
  # CONFIG_IP6_NF_MATCH_MARK is not set
  # CONFIG_IP6_NF_MATCH_IPV6HEADER is not set
  # CONFIG_IP6_NF_MATCH_AHESP is not set
  # CONFIG_IP6_NF_MATCH_LENGTH is not set
  # CONFIG_IP6_NF_MATCH_EUI64 is not set
  CONFIG_IP6_NF_FILTER=y
  CONFIG_IP6_NF_TARGET_LOG=y
  # CONFIG_IP6_NF_MANGLE is not set
  # CONFIG_IP6_NF_RAW is not set
  
  #
  # SCTP Configuration (EXPERIMENTAL)
  #
  # CONFIG_IP_SCTP is not set
  # CONFIG_ATM is not set
  # CONFIG_BRIDGE is not set
  # CONFIG_VLAN_8021Q is not set
  # CONFIG_DECNET is not set
  # CONFIG_LLC2 is not set
  # CONFIG_IPX is not set
  # CONFIG_ATALK is not set
  # CONFIG_X25 is not set
  # CONFIG_LAPB is not set
  # CONFIG_NET_DIVERT is not set
  # CONFIG_ECONET is not set
  # CONFIG_WAN_ROUTER is not set
  
  #
  # QoS and/or fair queueing
  #
  # CONFIG_NET_SCHED is not set
  # CONFIG_NET_CLS_ROUTE is not set
  
  #
  # Network testing
  #
  # CONFIG_NET_PKTGEN is not set
  # CONFIG_NETPOLL is not set
  # CONFIG_NET_POLL_CONTROLLER is not set
  # CONFIG_HAMRADIO is not set
  # CONFIG_IRDA is not set
  # CONFIG_BT is not set
  # CONFIG_DUMMY is not set
  # CONFIG_BONDING is not set
  # CONFIG_EQUALIZER is not set
  CONFIG_TUN=y
  
  #
  # Wan interfaces
  #
  # CONFIG_WAN is not set
  # CONFIG_PPP is not set
  # CONFIG_SLIP is not set
  # CONFIG_SHAPER is not set
  # CONFIG_NETCONSOLE is not set
  
  #
  # File systems
  #
  CONFIG_EXT2_FS=y
  # CONFIG_EXT2_FS_XATTR is not set
  CONFIG_EXT3_FS=y
  CONFIG_EXT3_FS_XATTR=y
  # CONFIG_EXT3_FS_POSIX_ACL is not set
  # CONFIG_EXT3_FS_SECURITY is not set
  CONFIG_JBD=y
  # CONFIG_JBD_DEBUG is not set
  CONFIG_FS_MBCACHE=y
  # CONFIG_REISERFS_FS is not set
  # CONFIG_JFS_FS is not set
  
  #
  # XFS support
  #
  # CONFIG_XFS_FS is not set
  # CONFIG_MINIX_FS is not set
  # CONFIG_ROMFS_FS is not set
  # CONFIG_QUOTA is not set
  CONFIG_DNOTIFY=y
  # CONFIG_AUTOFS_FS is not set
  # CONFIG_AUTOFS4_FS is not set
  
  #
  # CD-ROM/DVD Filesystems
  #
  # CONFIG_ISO9660_FS is not set
  # CONFIG_UDF_FS is not set
  
  #
  # DOS/FAT/NT Filesystems
  #
  # CONFIG_MSDOS_FS is not set
  # CONFIG_VFAT_FS is not set
  # CONFIG_NTFS_FS is not set
  
  #
  # Pseudo filesystems
  #
  CONFIG_PROC_FS=y
  # CONFIG_PROC_KCORE is not set
  CONFIG_SYSFS=y
  CONFIG_DEVFS_FS=y
  # CONFIG_DEVFS_MOUNT is not set
  # CONFIG_DEVFS_DEBUG is not set
  # CONFIG_DEVPTS_FS_XATTR is not set
  CONFIG_TMPFS=y
  # CONFIG_TMPFS_XATTR is not set
  # CONFIG_HUGETLB_PAGE is not set
  CONFIG_RAMFS=y
  
  #
  # Miscellaneous filesystems
  #
  # CONFIG_ADFS_FS is not set
  # CONFIG_AFFS_FS is not set
  # CONFIG_HFS_FS is not set
  # CONFIG_HFSPLUS_FS is not set
  # CONFIG_BEFS_FS is not set
  # CONFIG_BFS_FS is not set
  # CONFIG_EFS_FS is not set
  # CONFIG_CRAMFS is not set
  # CONFIG_VXFS_FS is not set
  # CONFIG_HPFS_FS is not set
  # CONFIG_QNX4FS_FS is not set
  # CONFIG_SYSV_FS is not set
  # CONFIG_UFS_FS is not set
  
  #
  # Network File Systems
  #
  # CONFIG_NFS_FS is not set
  # CONFIG_NFSD is not set
  # CONFIG_SMB_FS is not set
  # CONFIG_CIFS is not set
  # CONFIG_NCP_FS is not set
  # CONFIG_CODA_FS is not set
  # CONFIG_AFS_FS is not set
  
  #
  # Partition Types
  #
  # CONFIG_PARTITION_ADVANCED is not set
  CONFIG_MSDOS_PARTITION=y
  
  #
  # Native Language Support
  #
  # CONFIG_NLS is not set
  
  #
  # Security options
  #
  # CONFIG_KEYS is not set
  # CONFIG_SECURITY is not set
  
  #
  # Cryptographic options
  #
  # CONFIG_CRYPTO is not set
  
  #
  # Hardware crypto devices
  #
  
  #
  # Library routines
  #
  # CONFIG_CRC_CCITT is not set
  CONFIG_CRC32=y
  # CONFIG_LIBCRC32C is not set
  
  #
  # Multi-device support (RAID and LVM)
  #
  # CONFIG_MD is not set
  # CONFIG_INPUT is not set
  
  #
  # Kernel hacking
  #
  # CONFIG_PRINTK_TIME is not set
  # CONFIG_DEBUG_KERNEL is not set
  CONFIG_LOG_BUF_SHIFT=14


-- 
Ruaidhri


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&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

Reply via email to