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@gmail.com Jabber ID: dave@jabber.wasteland.org _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> 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?To get the acuracy you need you''ll need to adjust the parameter in xen/include/asm-x86/config.h too Ian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 11/23/05, Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk> wrote:> To get the acuracy you need you''ll need to adjust the parameter in > xen/include/asm-x86/config.h tooAh, I had forgotten about Xen itself. Thanks. Dave -- David Muench - davemuench@gmail.com Jabber ID: dave@jabber.wasteland.org _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wed, 23 Nov 2005, Ian Pratt wrote:>> What''s the right way to do this? > > To get the acuracy you need you''ll need to adjust the parameter in > xen/include/asm-x86/config.h tooJust curious, is there any disadvantage to doing this (changing the timer to 1000hz)? It''d be really nice to be able to have a working ztdummy module for my Asterisk vm. ------------------------------------------------------------------------ | nate carlson | natecars@natecarlson.com | http://www.natecarlson.com | | depriving some poor village of its idiot since 1981 | ------------------------------------------------------------------------ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> On Wed, 23 Nov 2005, Ian Pratt wrote: > >> What''s the right way to do this? > > > > To get the acuracy you need you''ll need to adjust the parameter in > > xen/include/asm-x86/config.h too > > Just curious, is there any disadvantage to doing this > (changing the timer to 1000hz)?Not particularly -- the plan is to make it configurable on a per guest basis, but since this can be done in a backward compatible fashion it hasn''t been a "must do" before 3.0.0. Ian _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, 28 Nov 2005, Ian Pratt wrote:> Not particularly -- the plan is to make it configurable on a per guest > basis, but since this can be done in a backward compatible fashion it > hasn''t been a "must do" before 3.0.0.Great - thanks! ------------------------------------------------------------------------ | nate carlson | natecars@natecarlson.com | http://www.natecarlson.com | | depriving some poor village of its idiot since 1981 | ------------------------------------------------------------------------ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users