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

Re: [Xen-users] /lib/tls.disabled or xen-friendly glibc?

To: FB <fbo2@xxxxxxx>
Subject: Re: [Xen-users] /lib/tls.disabled or xen-friendly glibc?
From: Angel de Vicente <angelv@xxxxxx>
Date: Tue, 22 Aug 2006 21:06:22 +0100
Cc: , xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 22 Aug 2006 13:07:05 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20060822170821.GA26868@xxxxxxxxxxxxx>
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>
References: <20060822170821.GA26868@xxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

 > > until now I have run Xen with /lib/tls out of the way for both dom0 and 
 > > domU's,
 > > but now I'm trying to install OpenLDAP in a domU, which requires TLS as
 > > default. So now I have at least three options ahead of me:
 > 
 > I doubt, those two TLSs are the same:
 > 
 >  TLS[OpenLDAP]: Transport Layer Security
 >  TLS[!XEN]: Transaction Local Storage
 >  
 > You can safely compile openldap with tls.

Ah, OK, I got confused about this (never compiled OpenLDAP before). So I guess
from my original post then I only get the first and the third options left
(i.e. either to restore /lib/tls or to get a xen-friendly glibc). The first
option works OK (as can seen below), but I guess the customary warning on
performance. I will try a xen-friendly glibc as well, but I wonder if anyone can
shed some light on what the performance hit will be?

Thanks a lot,
Angel de Vicente

----------

-bash-3.00# /usr/sbin/slapd -d 4
@(#) $OpenLDAP: slapd 2.2.13 (Oct 18 2005 10:08:34) $
        
buildcentos@x8664-build:/home/buildcentos/rpmbuild/BUILD/openldap-2.2.13/openldap-2.2.13/build-servers/servers/slapd
daemon_init: <null>
daemon: IPv6 socket() failed errno=97 (Address family not supported by protocol)
bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
bdb_db_init: Initializing BDB database
bdb_db_open: dc=my-domain,dc=com
bdb(dc=my-domain,dc=com): unable to initialize mutex: Function not implemented
bdb(dc=my-domain,dc=com): /var/lib/ldap/__db.001: unable to initialize 
environment lock: Function not implemented
bdb_db_open: dbenv_open failed: Function not implemented (38)
backend_startup: bi_db_open(0) failed! (38)
bdb(dc=my-domain,dc=com): DB_ENV->lock_id_free interface requires an 
environment configured for the locking subsystem
bdb(dc=my-domain,dc=com): txn_checkpoint interface requires an environment 
configured for the transaction subsystem
bdb_db_destroy: txn_checkpoint failed: Invalid argument (22)
slapd stopped.
connections_destroy: nothing to destroy.

-bash-3.00# mv /lib/tls.disabled /lib/tls

-bash-3.00# /usr/sbin/slapd -d 4
  
  ***************************************************************
  ***************************************************************
  ** WARNING: Currently emulating unsupported memory accesses  **
  **          in /lib/tls glibc libraries. The emulation is    **
  **          slow. To ensure full performance you should      **
  **          install a 'xen-friendly' (nosegneg) version of   **
  **          the library, or disable tls support by executing **
  **          the following as root:                           **
  **          mv /lib/tls /lib/tls.disabled                    **
  ** Offending process: slapd (pid=2477)                       **
  ***************************************************************
  ***************************************************************
  
Continuing...

@(#) $OpenLDAP: slapd 2.2.13 (Oct 18 2005 10:08:34) $
        
buildcentos@x8664-build:/home/buildcentos/rpmbuild/BUILD/openldap-2.2.13/openldap-2.2.13/build-servers/servers/slapd
daemon_init: <null>
daemon: IPv6 socket() failed errno=97 (Address family not supported by protocol)
bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
bdb_db_init: Initializing BDB database
bdb_db_open: dc=my-domain,dc=com
slapd starting



-- 
----------------------------------
http://www.iac.es/galeria/angelv/

PostDoc Software Support
Instituto de Astrofisica de Canarias


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