Displaying 20 results from an estimated 48 matches for "nparam".
Did you mean:
param
2013 Apr 01
0
nparams in virNodeGetCPUStats and CPU utilization
Hi,
I am trying to get the CPU utilization of a node and I am using
virNodeGetCPUStats(...)
Here is my code snippet. The error checking is omitted for brevity.
/* get the number of params */
retval = virNodeGetCPUStats (conn, VIR_NODE_CPU_STATS_ALL_CPUS,\
NULL, &nparams, 0);
printf ("nparams: %d\n", nparams);
/* allocate space for the params */
params = (virNodeCPUStatsPtr *) malloc (sizeof (virNodeCPUStats) *
nparams );
/* get the values */
retval = virNodeGetCPUStats (conn, VIR_NODE_CPU_STATS_ALL_CPUS,\
params, &nparams, 0);...
2013 Apr 19
1
problem when get the vm cpu stat
...Cpu usage is 100%, I can see from the vm shell by "top", when the info
Get by the "virDomainGetCPUStats" show only the "cpu_time" increased,
"user_time" and "system_time" was not changed at all.
Is that correct ? How can I get the vm cpu usage?
nparams = virDomainGetCPUStats(domain, NULL, 0, -1, 1, 0);
virDomainGetCPUStats(domain, params, nparams, -1, 1, 0);
Thanks,
Kevin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20130419/1d4642f8/attachment....
2011 Jan 05
0
Nnet and AIC: selection of a parsimonious parameterisation
...wts!=0) + length(data$perf)*log(RSS.tmp)
if (is.nan(AIC.tmp) || AIC.tmp>AIC ) {
cat('\n j',j,'AIC'=AIC.tmp,'AIC_1',AIC,'\n')
break
} else {
nn=nn.tmp; AIC=AIC.tmp; RSS=RSS.tmp
}
}
list(choice=sqrt(RSS/100),nparam=sum(nn$wts!=0),AIC=AIC,nn=nn)
}
#Modified function for optimisation
CVnn1 <- function(decay, formula, data, nreps=1, ri, size, linout, skip,
maxit, optimFlag=FALSE, alpha) {
truth <- log10(data$perf)
nn <- nnet(formula, data[ri !=1,], trace=FALSE, size=size, linout=linout,...
2012 Jul 10
1
Issue with getCPUStats and getMemoryStats
...t;>> print con.getCPUStats(2, None, 0, 0)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.6/site-packages/libvirt.py", line 2173, in
getCPUStats
ret = libvirtmod.virNodeGetCPUStats(self._o, cpuNum, params, nparams,
flags)
*AttributeError: 'module' object has no attribute 'virNodeGetCPUStats'*
>>> print con.getMemoryStats(2, None, 0, 0)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.6/site-packages/libvi...
2013 May 09
1
Getting libvirt Error when setting IO tune read_bytes_sec value using libvirt API virDomainSetBlockIotune
Hi All,
I am setting the value for "read_bytes_sec" using the following API code
virDomainSetBlockIoTune(dom, "/mnt/tmpsdb/FileVM1", parainfoPtr, nparams,
2);
I am succesfully able to set this value and i can read it back using the API
virDomainGetBlockIoTune(dom,"/mnt/tmpsdb/FileVM1",parainfoPtr,&nparams,2);
But after setting this value when i shutdown my VM and start it again I am
getting following error -
ibvirtError: internal...
2013 May 09
0
error with lhoat() function from the package hydroPSO
Dear all,
I just installed the package hydroPSO and when I try to run the example of
the lhoat() function I got this error:
nparam <- 5
lhoat(
fn=sphere,
lower=rep(-100,nparam),
upper=rep(100,nparam),
control=list(N=10, f=0.1, write2disk=TRUE)
)
*Error in fn.name == "hydromod" : *
* comparison (1) is possible only for atomic and list types*
Any idea about what it might be?
T...
2009 Apr 05
1
Which model to keep (negative BIC)
Hi,
My questions concern the function 'mclustBIC' which compute BIC for a range of clusters of several models on the given data and the other function 'mclustModel' which choose the best model and the best number of cluster accordind to the results of the previous cited function.
1) When trying the following example (see ?mclustModel), I get negative BIC computed by
2017 Jan 10
3
Regarding Migration Statistics
Greetings,
I am writing a code using libvirt API to migrate VM between two physical
hosts *(QEMU/KVM) , *say some *n *number of times.
*1)* I am using right now* virDomainPtr virDomainMigrate (.......) *and to
calculate the total migration time I am using something like this:
*clock_gettime(CLOCK_MONOTONIC_RAW,&begin); *
*migrate*(domainToMigrate,nodeToMigrate);
2008 May 07
2
Inserting authenticity token into AJAX request params
...'') && !
Object.keys(req.options.parameters).include(''authenticity_token'')){
----> req.options.parameters.set(''authenticity_token'',
rails_gen_token());
}
alert(''method is: '' + req.options.method + ''\nparams are: '' +
Object.keys(req.options.parameters));
},
onComplete: function(){
alert(''a request completed'');
}
});
Where you see the arrow is where my problem (obviously) arises.
rails_gen_token() is a function that correctly returns a valid auth
token....
2013 May 28
2
Re: Fwd: Does Set Block IO tune take effect in the same session.
On 27.05.2013 12:36, vikrant verma wrote:
> Hello Michal,
>
> I am using the following code -
>
> virDomainSetInterfaceParameters(dom, "vnet0", networkParainfoPtr,
> nparams,0);
>
> before calling this i am assigning the following Inbound values
>
> inbound.average = 10 (10 kbps)
> inbound .peak = 10
> inbound.burst = 10
I suspect this way too low burst value. Try leaving the limit and it
should work correctly.
Michal
2019 Jan 25
0
[klibc:update-dash] expand: Fix ghost fields with unquoted $@/$*
...);
@@ -712,7 +712,6 @@ evalvar(char *p, int flag)
int c;
int startloc;
ssize_t varlen;
- int easy;
int quoted;
varflags = *p++;
@@ -723,12 +722,11 @@ evalvar(char *p, int flag)
quoted = flag & EXP_QUOTED;
var = p;
- easy = (!quoted || (*var == '@' && shellparam.nparam));
startloc = expdest - (char *)stackblock();
p = strchr(p, '=') + 1;
again:
- varlen = varvalue(var, varflags, flag, "ed);
+ varlen = varvalue(var, varflags, flag, quoted);
if (varflags & VSNUL)
varlen--;
@@ -771,8 +769,11 @@ vsplus:
if (subtype == VSNORMAL) {...
2020 Mar 28
0
[klibc:update-dash] dash: expand: Fix ghost fields with unquoted $@/$*
...);
@@ -712,7 +712,6 @@ evalvar(char *p, int flag)
int c;
int startloc;
ssize_t varlen;
- int easy;
int quoted;
varflags = *p++;
@@ -723,12 +722,11 @@ evalvar(char *p, int flag)
quoted = flag & EXP_QUOTED;
var = p;
- easy = (!quoted || (*var == '@' && shellparam.nparam));
startloc = expdest - (char *)stackblock();
p = strchr(p, '=') + 1;
again:
- varlen = varvalue(var, varflags, flag, "ed);
+ varlen = varvalue(var, varflags, flag, quoted);
if (varflags & VSNUL)
varlen--;
@@ -771,8 +769,11 @@ vsplus:
if (subtype == VSNORMAL) {...
2012 Apr 08
0
NFS + sanlock problems
...351+0000: 3485: debug : qemuProcessHook:2147 :
Obtaining domain lock
2012-04-08 20:03:13.351+0000: 3485: debug : virDomainLockManagerNew:123
: plugin=0x7faa74018450 dom=0x7faa680008c0 withResources=1
2012-04-08 20:03:13.351+0000: 3485: debug : virLockManagerNew:291 :
plugin=0x7faa74018450 type=0 nparams=4 params=0x7faa81355a60 flags=0
2012-04-08 20:03:13.351+0000: 3485: debug : virLockManagerLogParams:98
: key=uuid type=uuid value=e3bc07fe-8b01-5f90-7c91-ad154630379e
2012-04-08 20:03:13.351+0000: 3485: debug : virLockManagerLogParams:94
: key=name type=string value=rhel1.locktest
2012-04-08...
2010 Apr 23
1
Path simple menu integrated progress indicator
...lt;com32.h>
#include <syslinux/adv.h>
+#include <console.h>
#include "menu.h"
/* The symbol "cm" always refers to the current menu across this file... */
-static struct menu *cm;
+//static struct menu *cm;
+struct menu *cm;
const struct menu_parameter mparm[NPARAMS] = {
[P_WIDTH] = {"width", 0},
@@ -41,6 +43,7 @@ const struct menu_parameter mparm[NPARAM
[P_PASSWD_MARGIN] = {"passwordmargin", 3},
[P_MENU_ROWS] = {"rows", 12},
[P_TABMSG_ROW] = {"tabmsgrow", 18},
+ [P_LOADMSG_ROW] = {"loadmsgro...
2019 Apr 08
0
[PATCH v4 2/7] common: Bundle the libvirt-ocaml library for use by virt-v2v
..., Val_int (info.nrVirtCpu));
+ v = caml_copy_int64 (info.cpuTime); Store_field (rv, 4, v);
+
+ CAMLreturn (rv);
+}
+
+CAMLprim value
+ocaml_libvirt_domain_get_scheduler_type (value domv)
+{
+ CAMLparam1 (domv);
+ CAMLlocal2 (rv, strv);
+ virDomainPtr dom = Domain_val (domv);
+ char *r;
+ int nparams;
+
+ NONBLOCKING (r = virDomainGetSchedulerType (dom, &nparams));
+ CHECK_ERROR (!r, "virDomainGetSchedulerType");
+
+ rv = caml_alloc_tuple (2);
+ strv = caml_copy_string (r); Store_field (rv, 0, strv);
+ free (r);
+ Store_field (rv, 1, nparams);
+ CAMLreturn (rv);
+}
+
+CAML...
2019 Dec 16
3
[v2v PATCH 0/2] Move libvirt-ocaml copy to v2v repo
libvirt-ocaml is used only by virt-v2v, so move it to this repository,
instead of having it around in the common submodule.
The removal from common will happen later.
Pino Toscano (2):
common: Bundle the libvirt-ocaml library for use by virt-v2v
build: switch embedded copy of libvirt-ocaml
.gitignore | 2 +
3rdparty/libvirt-ocaml/Makefile.am |
2019 Jan 25
0
[klibc:update-dash] [BUILTIN] Do not allow break to break across function calls
...nest = loopnest;
savehandler = handler;
if ((e = setjmp(jmploc.loc))) {
goto funcdone;
@@ -940,6 +942,7 @@ evalfun(struct funcnode *func, int argc, char **argv, int flags)
shellparam.malloc = 0;
func->count++;
funcline = func->n.ndefun.linno;
+ loopnest = 0;
INTON;
shellparam.nparam = argc - 1;
shellparam.p = argv + 1;
@@ -950,6 +953,7 @@ evalfun(struct funcnode *func, int argc, char **argv, int flags)
poplocalvars(0);
funcdone:
INTOFF;
+ loopnest = saveloopnest;
funcline = savefuncline;
freefunc(func);
freeparam(&shellparam);
2020 Mar 28
0
[klibc:update-dash] dash: [BUILTIN] Do not allow break to break across function calls
...nest = loopnest;
savehandler = handler;
if ((e = setjmp(jmploc.loc))) {
goto funcdone;
@@ -940,6 +942,7 @@ evalfun(struct funcnode *func, int argc, char **argv, int flags)
shellparam.malloc = 0;
func->count++;
funcline = func->n.ndefun.linno;
+ loopnest = 0;
INTON;
shellparam.nparam = argc - 1;
shellparam.p = argv + 1;
@@ -950,6 +953,7 @@ evalfun(struct funcnode *func, int argc, char **argv, int flags)
poplocalvars(0);
funcdone:
INTOFF;
+ loopnest = saveloopnest;
funcline = savefuncline;
freefunc(func);
freeparam(&shellparam);
2017 Jan 10
0
Re: Regarding Migration Statistics
...AIN_JOB_AUTO_CONVERGE_THROTTLE
and a lot of other VIR_DOMAIN_JOB_* macros following this one for
details). You can look at
http://libvirt.org/git/?p=libvirt.git;a=blob;f=tools/virsh-domain.c;h=93587e8bc7c79cbb66b6ee107472dfec5f320dab;hb=HEAD
In short, just call
virTypedParamsGetULLong(params, nparams, VIR_DOMAIN_JOB_DOWNTIME,
&value)
to fetch downtime from params into value if it was present there (check
return value of the API). The exact API to call is different for each
type, although all migration statistics are unsigned long long so this
one is all you nee...
2023 May 15
0
PHP API
...rDomainPtr
> <https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainPtr> dom,
> const char * disk,
> const char * destxml,
> virTypedParameterPtr
> <https://libvirt.org/html/libvirt-libvirt-common.html#virTypedParameterPtr> params,
> int nparams,
> unsigned int flags)intvirDomainBlockPull (virDomainPtr
> <https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainPtr>dom,
>
>
> On Wed, May 3, 2023 at 12:42?PM Michal Pr?vozn?k <mprivozn at redhat.com
> <mailto:mprivozn at redhat.com>> wrote:
&...