search for: last_tim

Displaying 13 results from an estimated 13 matches for "last_tim".

Did you mean: last_time
2015 Jul 24
0
virsh dominfo does not show correct cpuTime
...y one helps? Thanks. Host information: - CentOS Linux release 7.0.1406 (Core) - libvirt 1.2.8 - qemu-kvm-rhev 2.1.2 ----- python script to capture cpu domain usage ---- import libvirt import time conn = libvirt.openReadOnly("qemu:///system") dom = conn.lookupByName('cpu-test') last_time = time.time() last_cpu_time = dom.info()[4] while True: time.sleep(1) this_time = time.time() dom_info = dom.info() print "CPU time: %s" % dom_info[4] print "CPU util: %s%%" % ((dom_info[4] - last_cpu_time) / ((this_time - last_time) * 10000000)) last_cpu_time =...
2015 Jul 24
0
Re: virsh dominfo does not show correct cpuTime
...S Linux release 7.0.1406 (Core) > - libvirt 1.2.8 > - qemu-kvm-rhev 2.1.2 > > ----- python script to capture cpu domain usage ---- > import libvirt > import time > > conn = libvirt.openReadOnly("qemu:///system") > dom = conn.lookupByName('cpu-test') > last_time = time.time() > last_cpu_time = dom.info()[4] > > while True: > time.sleep(1) > this_time = time.time() > dom_info = dom.info() > > print "CPU time: %s" % dom_info[4] > print "CPU util: %s%%" % ((dom_info[4] - last_cpu_time) / ((this_time -...
2007 May 09
2
[PATCH 0/2 v05] lguest: TSC & hrtimers
The following patches are the latest update of the TSC and hrtimer patches I posted on 29/03. Rusty's original TSC patch has been resynced to the latest lguest repo, as has the hrtimer patch, which also incorporates feedback from Jeremy & Rusty: - Change clock event hrtimer to absolute time. 'now' is captured in the host during the hypercall. - Propagate -ETIME back to the
2007 May 09
2
[PATCH 0/2 v05] lguest: TSC & hrtimers
The following patches are the latest update of the TSC and hrtimer patches I posted on 29/03. Rusty's original TSC patch has been resynced to the latest lguest repo, as has the hrtimer patch, which also incorporates feedback from Jeremy & Rusty: - Change clock event hrtimer to absolute time. 'now' is captured in the host during the hypercall. - Propagate -ETIME back to the
2004 Apr 06
0
cbqmon.pl
...1024); > > foreach $keyn (''bytes'',''packets'') > { > last if $printrates; > > $smoothed{$classid}{$keyn} = > $parm * (($classdata{$classid}{$keyn} - $olddata{$classid}{$keyn})/($nowtime - $last_time)) + > (1-$parm) * $smoothed{$classid}{$keyn}; > > if ($nowtime-$starttime < 2/$persec) { $smoothed{$classid}{$keyn} = 0; } > $olddata{$classid}{$keyn} = $classdata{$classid}{$keyn}; > } > > > write; > } >...
2007 May 09
1
[patch 3/9] lguest: the host code
...'\0'; + kill_guest(lg, "CRASH: %s", msg); + break; + } + case LHCALL_FLUSH_TLB: + if (regs->edx) + guest_pagetable_clear_all(lg); + else + guest_pagetable_flush_user(lg); + break; + case LHCALL_TIMER_READ: { + u32 now = jiffies; + mb(); + regs->eax = now - lg->last_timer; + lg->last_timer = now; + break; + } + case LHCALL_GET_WALLCLOCK: { + struct timespec ts; + ktime_get_real_ts(&ts); + regs->eax = ts.tv_sec; + break; + } + case LHCALL_BIND_DMA: + regs->eax = bind_dma(lg, regs->edx, regs->ebx, + regs->ecx >> 8, regs-&gt...
2007 May 09
1
[patch 3/9] lguest: the host code
...'\0'; + kill_guest(lg, "CRASH: %s", msg); + break; + } + case LHCALL_FLUSH_TLB: + if (regs->edx) + guest_pagetable_clear_all(lg); + else + guest_pagetable_flush_user(lg); + break; + case LHCALL_TIMER_READ: { + u32 now = jiffies; + mb(); + regs->eax = now - lg->last_timer; + lg->last_timer = now; + break; + } + case LHCALL_GET_WALLCLOCK: { + struct timespec ts; + ktime_get_real_ts(&ts); + regs->eax = ts.tv_sec; + break; + } + case LHCALL_BIND_DMA: + regs->eax = bind_dma(lg, regs->edx, regs->ebx, + regs->ecx >> 8, regs-&gt...
2001 Sep 01
3
Patch to make rsync preserve access times
...; *** ./flist.c Wed Jan 26 23:53:39 2000 > --- ./flist.c Mon Feb 7 00:52:17 2000 ... > *************** > *** 201,206 **** > --- 203,209 ---- > if (file->uid == last_uid) flags |= SAME_UID; > if (file->gid == last_gid) flags |= SAME_GID; > if (file->modtime == last_time) flags |= SAME_TIME; > + if (file->accesstime == last_access_time) flags |= SAME_ACCESS_TIME; > > for (l1=0;lastname[l1] && (fname[l1] == lastname[l1]) && (l1 < 255);l1++) ; > l2 = strlen(fname) - l1; Setting this additional flag bit, SAME_ACCESS_TIME...
2007 Apr 18
1
[RFC/PATCH LGUEST X86_64 03/13] lguest64 core
..._guest_idt_entry(vcpu, regs->rdx,&g); + break; + } + case LHCALL_SET_STACK: + guest_set_stack(vcpu, regs->rdx, regs->rbx); + break; + case LHCALL_TS: + vcpu->ts = regs->rdx; + break; + case LHCALL_TIMER_READ: { + u32 now = jiffies; + mb(); + regs->rax = now - linfo->last_timer; + linfo->last_timer = now; + break; + } + case LHCALL_TIMER_START: + linfo->timer_on = 1; + if (regs->rdx != HZ) + kill_guest(linfo, "Bad clock speed %lli", regs->rdx); + linfo->last_timer = jiffies; + break; + case LHCALL_HALT: + linfo->halted = 1; + break;...
2007 Apr 18
1
[RFC/PATCH LGUEST X86_64 03/13] lguest64 core
..._guest_idt_entry(vcpu, regs->rdx,&g); + break; + } + case LHCALL_SET_STACK: + guest_set_stack(vcpu, regs->rdx, regs->rbx); + break; + case LHCALL_TS: + vcpu->ts = regs->rdx; + break; + case LHCALL_TIMER_READ: { + u32 now = jiffies; + mb(); + regs->rax = now - linfo->last_timer; + linfo->last_timer = now; + break; + } + case LHCALL_TIMER_START: + linfo->timer_on = 1; + if (regs->rdx != HZ) + kill_guest(linfo, "Bad clock speed %lli", regs->rdx); + linfo->last_timer = jiffies; + break; + case LHCALL_HALT: + linfo->halted = 1; + break;...
2007 Apr 18
43
[RFC PATCH 00/35] Xen i386 paravirtualization support
Unlike full virtualization in which the virtual machine provides the same platform interface as running natively on the hardware, paravirtualization requires modification to the guest operating system to work with the platform interface provided by the hypervisor. Xen was designed with performance in mind. Calls to the hypervisor are minimized, batched if necessary, and non-critical codepaths
2007 Apr 18
43
[RFC PATCH 00/35] Xen i386 paravirtualization support
Unlike full virtualization in which the virtual machine provides the same platform interface as running natively on the hardware, paravirtualization requires modification to the guest operating system to work with the platform interface provided by the hypervisor. Xen was designed with performance in mind. Calls to the hypervisor are minimized, batched if necessary, and non-critical codepaths
2003 Dec 01
0
No subject
...e linux-2.2.20-pre2-orig/fs/smbfs/inode.c linux-2.2.20-pre2-smbfs/fs/smbfs/inode.c --- linux-2.2.20-pre2-orig/fs/smbfs/inode.c Mon Dec 11 01:49:44 2000 +++ linux-2.2.20-pre2-smbfs/fs/smbfs/inode.c Thu May 24 22:47:34 2001 @@ -242,21 +242,12 @@ { struct inode *inode = dentry->d_inode; time_t last_time; + off_t last_sz; int error = 0; DEBUG1("\n"); /* - * If this is a file opened with write permissions, - * the inode will be up-to-date. - */ - if (S_ISREG(inode->i_mode) && smb_is_open(inode)) - { - if (inode->u.smbfs_i.access != SMB_O_RDONLY) - goto out; -...