[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] How to raise HZ to 1000 properly?


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: David Muench <davemuench@xxxxxxxxx>
  • Date: Tue, 22 Nov 2005 21:29:42 -0500
  • Delivery-date: Wed, 23 Nov 2005 02:29:50 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=RP0WDHbfmU9V5b0Aq1gV9QX+tBjHiJC5UC2U/vJcsekv9HRRGjgnEZcxBzrJOhpRdWqWOokGp670eHjC1TvfdOxhKDOE01mpFxAoCOH2e3papZotZgR76a+zn+DzYBKDX9QkykysW/QWICu0IGUGDnUGECS33TRR82dbpB57ixg=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi all,

I've been redoing my Asterisk domU, and decided to do it correctly
this time. This time I'm using zaptel and ztdummy, and that requires
HZ to be set to 1000. I've managed to do this, and Asterisk works
great with ztdummy, but I don't think I did it correctly. I've changed
include/asm-xen/asm/param.h thusly:

#ifdef __KERNEL__
# define HZ             1000            /* Internal kernel timer frequency */
# define USER_HZ        1000            /* .. some user interfaces are
in "ticks" */
# define CLOCKS_PER_SEC         (USER_HZ)       /* like times() */
#endif

#ifndef HZ
#define HZ 1000
#endif

And like I said, it works. But my bogomips are now 25100.28, whereas
my other domU's are more like 2300-2400.

What's the right way to do this?

Thanks,
Dave

--
David Muench - davemuench@xxxxxxxxx
Jabber ID: dave@xxxxxxxxxxxxxxxxxxxx

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.