WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Badiane: EHLO: Swap: 0k problem.

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Badiane: EHLO: Swap: 0k problem.
From: Badiane Ka <badiane_ka@xxxxxxxxx>
Date: Sun, 4 Dec 2005 11:04:32 -0800 (PST)
Delivery-date: Sun, 04 Dec 2005 19:04:27 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=u/m9FafU23tsPcTLgDUMHUL9joHH0cn72musa6micspMCG4GD2pyUtvqWKwINflla9Uk4IBFkdXyv9CH5ZiMu/bUwfR7hXirAtp+2ajS5xmTpL3C/g1dCI1O7Ji4LjEBIcLbysNU5PA+I7eTZHbgvl+QybK/wrDDBmh+lHqe5Dg= ;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
I'm running Debian 3.1 on a xen 2.0.7 kernel.  I am
using lvm for my partions and are exporting 2 of them
to each (3 domU's) as sda1 and sda2 which are used for
system space and swap space.  

I have enabled swap in the kernel but none of the
domU's have any swap space.  I have created the swap
space but dmesg in the domU's shows that i has failed.
 When in the domU's I cannot (which I am assuming
should be the proper behavior) list the sda devices
(since they shouldn't exist in the domU's) [ls:
/dev/sda*: No such file or directory].

This is my fstab:
/dev/sda1       /       xfs     defaults        0     
 1
/dev/sda2       swap    swap    sw      0       0
proc            /proc   proc    defaults        0     
 0

This is the config file for this domain:
#  -*- mode: python; -*-
#============================================================================
# Python configuration setup for 'xm create'.
# This script sets the parameters used when a domain
is created using 'xm create'.
# You use a separate script for each domain you want
to create, or
# you can set the parameters for the domain on the xm
command line.
#============================================================================

#----------------------------------------------------------------------------
# Kernel image file.
kernel = "/boot/xen-linux-2.6.11xen-boxu"

# Optional ramdisk.
#ramdisk = "/boot/initrd.gz"

# The domain build function. Default is 'linux'.
#builder='linux'

# Initial memory allocation (in megabytes) for the new
domain.
#memory = 160
memory = 96

# A name for your domain. All domains must have
different names.
name = "xen-admin"

# Which CPU to start domain on?
#cpu = -1   # leave to Xen to pick

#----------------------------------------------------------------------------
# Define network interfaces.

# Number of network interfaces. Default is 1.
#nics=1
nics=1

# Optionally define mac and/or bridge for the network
interfaces.
# Random MACs are assigned if not given.
vif = [ 'mac=aa:00:00:00:00:33, bridge=xen-br0' ]

#----------------------------------------------------------------------------
# Define the disk devices you want the domain to have
access to, and
# what you want them accessible as.
# Each disk entry is of the form phy:UNAME,DEV,MODE
# where UNAME is the device, DEV is the device name
the domain will see,
# and MODE is r for read-only, w for read-write.

disk = [
'phy:xen/samba,sda1,w','phy:xen/samba_swap,sda2,w' ]

#----------------------------------------------------------------------------
# Set the kernel command line for the new domain.
# You only need to define the IP parameters and
hostname if the domain's
# IP config doesn't, e.g. in ifcfg-eth0 or via DHCP.
# You can use 'extra' to set the runlevel and custom
environment
# variables used by custom rc scripts (e.g. VMID=,
usr= ).

# Set if you want dhcp to allocate the IP address.
#dhcp="dhcp"
# Set netmask.
#netmask=
# Set default gateway.
#gateway=
# Set the hostname.
#hostname= "vm%d" % vmid

# Set root device.
root = "/dev/sda1 ro"

# Root device for nfs.
#root = "/dev/nfs"
# The nfs server.
#nfs_server = '169.254.1.0'
# Root directory on the nfs server.
#nfs_root   = '/full/path/to/root/directory'

# Sets runlevel 4.
#extra = "4"

#----------------------------------------------------------------------------
# Set according to whether you want the domain
restarted when it exits.
# The default is 'onreboot', which restarts the domain
when it shuts down
# with exit code reboot.
# Other values are 'always', and 'never'.

#restart = 'onreboot'

#============================================================================

This is my dmesg from the domU:
xen-admin:~# dmesg
Linux version 2.6.11xen-boxu (root@xen-box) (gcc
version 3.3.6 (Debian 1:3.3.6-10)) #1 Tue Oct 4
14:27:07 EDT 2005
BIOS-provided physical RAM map:
 Xen: 0000000000000000 - 0000000006000000 (usable)
96MB LOWMEM available.
On node 0 totalpages: 24576
  DMA zone: 24576 pages, LIFO batch:6
  Normal zone: 0 pages, LIFO batch:1
  HighMem zone: 0 pages, LIFO batch:1
DMI not present.
IRQ lockup detection disabled
Allocating PCI resources starting at 06000000 (gap:
06000000:fa000000)
Built 1 zonelists
Kernel command line:  root=/dev/sda1 ro
Initializing CPU#0
PID hash table entries: 512 (order: 9, 8192 bytes)
Xen reported: 1395.785 MHz processor.
Using tsc for high-res timesource
Dentry cache hash table entries: 16384 (order: 4,
65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768
bytes)
vmalloc area: c6800000-fbff9000, maxmem 34000000
Memory: 94152k/98304k available (2207k kernel code,
4024k reserved, 459k data, 116k init, 0k highmem)
Checking if this processor honours the WP bit even in
supervisor mode... Ok.
Calibrating delay loop... 1464.72 BogoMIPS
(lpj=7323648)
Mount-cache hash table entries: 512 (order: 0, 4096
bytes)
CPU: After generic identify, caps: 0383fbff 00000000
00000000 00000000 00000000 00000000 00000000
CPU: After vendor identify, caps: 0383fbff 00000000
00000000 00000000 00000000 00000000 00000000
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
CPU: After all inits, caps: 0383c3f1 00000000 00000000
00000040 00000000 00000000 00000000
CPU: Intel(R) Celeron(TM) CPU                1400MHz
stepping 01
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... disabled
NET: Registered protocol family 16
xen_mem: Initialising balloon driver.
SCSI subsystem initialized
SGI XFS with ACLs, security attributes, realtime, no
debug enabled
SGI XFS Quota Management subsystem
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 4096K size
1024 blocksize
loop: loaded (max 8 devices)
nbd: registered device at major 43
Xen virtual console successfully installed as tty
Event-channel device installed.
xen_blk: Initialising virtual block device driver
xen_net: Initialising virtual ethernet driver.
register_blkdev: cannot get major 8 for sd
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP established hash table entries: 4096 (order: 3,
32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384
bytes)
TCP: Hash tables configured (established 4096 bind
4096)
NET: Registered protocol family 1
NET: Registered protocol family 17
XFS mounting filesystem sda1
Ending clean XFS mount for filesystem: sda1
VFS: Mounted root (xfs filesystem) readonly.
Freeing unused kernel memory: 116k freed

 
***************************************************************
 
***************************************************************
  ** WARNING: Currently emulating unsupported memory
accesses  **
  **          in /lib/tls libraries. The emulation is
very     **
  **          slow. To ensure full performance you
should      **
  **          execute the following as root:          
        **
  **          mv /lib/tls /lib/tls.disabled           
        **
 
***************************************************************
 
***************************************************************

Continuing...

oom-killer: gfp_mask=0x80d2
DMA per-cpu:
cpu 0 hot: low 12, high 36, batch 6
cpu 0 cold: low 0, high 12, batch 6
Normal per-cpu: empty
HighMem per-cpu: empty

Free pages:        1384kB (0kB HighMem)
Active:21579 inactive:15 dirty:0 writeback:0
unstable:0 free:346 slab:1578 mapped:21590
pagetables:105
DMA free:1384kB min:1252kB low:1564kB high:1876kB
active:86316kB inactive:60kB present:98304kB
pages_scanned:62040 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
Normal free:0kB min:0kB low:0kB high:0kB active:0kB
inactive:0kB present:0kB pages_scanned:0
all_unreclaimable? no
lowmem_reserve[]: 0 0 0
HighMem free:0kB min:128kB low:160kB high:192kB
active:0kB inactive:0kB present:0kB pages_scanned:0
all_unreclaimable? no
lowmem_reserve[]: 0 0 0
DMA: 36*4kB 1*8kB 1*16kB 0*32kB 1*64kB 1*128kB 0*256kB
0*512kB 1*1024kB 0*2048kB 0*4096kB = 1384kB
Normal: empty
HighMem: empty
Swap cache: add 0, delete 0, find 0/0, race 0+0
Free swap  = 0kB
Total swap = 0kB
Out of Memory: Killed process 7870 (exim4).
oom-killer: gfp_mask=0x1d2
DMA per-cpu:
cpu 0 hot: low 12, high 36, batch 6
cpu 0 cold: low 0, high 12, batch 6
Normal per-cpu: empty
HighMem per-cpu: empty

Free pages:        1288kB (0kB HighMem)
Active:21582 inactive:5 dirty:0 writeback:0 unstable:0
free:322 slab:1573 mapped:21582 pagetables:100
DMA free:1288kB min:1252kB low:1564kB high:1876kB
active:86328kB inactive:20kB present:98304kB
pages_scanned:49508 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
Normal free:0kB min:0kB low:0kB high:0kB active:0kB
inactive:0kB present:0kB pages_scanned:0
all_unreclaimable? no
lowmem_reserve[]: 0 0 0
HighMem free:0kB min:128kB low:160kB high:192kB
active:0kB inactive:0kB present:0kB pages_scanned:0
all_unreclaimable? no
lowmem_reserve[]: 0 0 0
DMA: 8*4kB 3*8kB 1*16kB 0*32kB 1*64kB 1*128kB 0*256kB
0*512kB 1*1024kB 0*2048kB 0*4096kB = 1288kB
Normal: empty
HighMem: empty
Swap cache: add 0, delete 0, find 0/0, race 0+0
Free swap  = 0kB
Total swap = 0kB
Out of Memory: Killed process 7929 (localedef).

I have taken care of the tls message already.

So I would like to know if anyone knows how I can get
some swap going.  I wouldn't want the system to choke
when I'm testing some web and mail stuff.

Thanks in advance for everything.







                
__________________________________________ 
Yahoo! DSL ? Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] Badiane: EHLO: Swap: 0k problem., Badiane Ka <=