search for: clock_gettim

Displaying 20 results from an estimated 231 matches for "clock_gettim".

Did you mean: clock_gettime
2017 Sep 12
2
how to troubleshoot ssh multiplexing hanging issues?
...amp; $3=="ssh:" && $5=="[mux]" {print}' 29305 worker ssh: /var/lib/worker/.ssh/cm-boss at ui1:22 [mux] I tried to attach strace to the ssh mux process, and this is what i see when the problem is happening: select(1024, [3 5 9], [], NULL, {0, 11336}) = 0 (Timeout) clock_gettime(0x7 /* CLOCK_??? */, {17873813, 778030739}) = 0 clock_gettime(0x7 /* CLOCK_??? */, {17873813, 778085461}) = 0 clock_gettime(0x7 /* CLOCK_??? */, {17873813, 778109973}) = 0 select(1024, [3 4 5 9], [], NULL, NULL) = 1 (in [4]) clock_gettime(0x7 /* CLOCK_??? */, {17873813, 778186890}) = 0 accept(4, 0...
2009 Oct 23
3
rdtsc in userspace
...t I thought that this meant that gcc was using rdtsc, but gcc sources do not show any use of rdtsc. Next I suspected bash, but it doesn''t either. Finally, it appears that the calls are occurring from glibc, and searching for uses of rdtsc, I found that glibc has its own implementation of clock_gettime that uses rdtsc directly! The manpage for clock_gettime ("man 3 clock_gettime") has a lengthy caveat about using clock_gettime on an SMP system BUT provides a mechanism to test to see if your SMP system is safe, clock_getcpuclockid(0). See for example (near the end): http://linux.die.n...
2012 Dec 05
3
[PATCH] qemu-traditional: update configure check for -lrt changes in glibc 2.17
configure uses clock_gettime to check whether -lrt is needed - and don''t check other functions. With glibc 2.17 clock_gettime is part of libc, so use timer_gettime instead, which is in -lrt in old and new versions of glibc. Signed-off-by: Olaf Hering <olaf@aepfle.de> --- configure | 2 +- 1 file changed, 1 in...
2015 Nov 24
2
samba4 ldap high load and port queue overflow
...read 1064811 close 1270401 open 1733182 lstat 1938394 bind 1939462 unlink 2074873 munmap 2569299 mkdir 3539965 clock_gettime 5662586 stat 7543724 fcntl 74322331 poll 5393911015 I think may be samba something doing not optimal way. Like this, first we try to create directory (mkdir), then we check it (stat). May be that leads to impact file...
2016 Feb 03
2
[PATCH] Fix compilation on OS/2
...01/24/16 12:29 PM, Erik de Castro Lopo wrote:> Dave Yeo wrote: > >> After this the build dies with, >> util.c: In function 'benchmark_function': >> util.c:124:17: error: 'CLOCK_PROCESS_CPUTIME_ID' undeclared (first use >> in this function) >> clock_gettime (CLOCK_PROCESS_CPUTIME_ID, &start) ; >> >> Would using gettimeofday() be accurate enough? > > AS a fall back yes, but not as replacement on platforms with clock_gettime(). > >> Perhaps simpler just to >> disable the microbench test on OS/2 as gettimeofday() w...
2013 Aug 03
2
Call for testing: OpenSSH-6.3
On 2013-08-03 01:41, Darren Tucker wrote: > On Sat, Aug 3, 2013 at 5:58 PM, Damien Miller <djm at mindrot.org> wrote: >>> Looking at failure logs - this is what's killing it: >>> clock_gettime: Invalid argument > [...] >> Maybe these platforms lack CLOCK_MONOTONIC? Darren, perhaps we should >> wrap clock_gettime and have a fallback for platforms that lack this? > I thought we did. We check for clock_gettime in configure, and misc.c has: > > #if defined(HAVE_CLOC...
2016 Jan 23
1
microbench (benchmark_residual) requires -lrt for clock_gettime()
On my setup with glibc-2.8, benchmark_residual linkage fails with undefines references to clock_gettime(). Adding -lrt fixes that. The following is a small patch for it. Regards. -- O.S. diff --git a/configure.ac b/configure.ac index 993ac33..392485e 100644 --- a/configure.ac +++ b/configure.ac @@ -437,6 +437,11 @@ if test x$enable_stack_smash_protection = "xyes" ; then XIPH_GXX_...
2013 May 07
3
Re: [PATCH] qemu-traditional: update configure check for -lrt changes in glibc 2.17
...ring wrote: > > Ping > > Makes sense. > > Acked-by: Matt Wilson <msw@amazon.com> > > > On Wed, Jan 16, Olaf Hering wrote: > > > > > Ping > > > > > > On Wed, Dec 05, Olaf Hering wrote: > > > > > > > configure uses clock_gettime to check whether -lrt is needed - and don''t > > > > check other functions. With glibc 2.17 clock_gettime is part of libc, so > > > > use timer_gettime instead, which is in -lrt in old and new versions of > > > > glibc. > > > > > > >...
2018 Feb 20
2
Migration from 3.6.25-0ubuntu0.12.04.10 to 4.x with passdb backend = ldapsam
.../usr/local/samba/lib/libsamba-util.so.0(+0x21092) [0x7f0dc9e11092] ``` I also tried stracing smbd. There is some trace log: ``` fcntl(22, F_SETLKW, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=28064, l_len=1}) = 0 fcntl(22, F_SETLKW, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=28064, l_len=1}) = 0 clock_gettime(CLOCK_BOOTTIME, {84255, 473048526}) = 0 write(1, "smbldap_search_ext: base => [sam"..., 123) = 123 clock_gettime(CLOCK_BOOTTIME, {84255, 473252973}) = 0 rt_sigaction(SIGALRM, {0x7f0dbfabd4ee, [ALRM], SA_RESTORER, 0x7f0dca289390}, {SIG_IGN, [ALRM], SA_RESTORER, 0x7f0dca289390}, 8) = 0...
2012 Jun 25
6
puppet freezes on FUTEX_WAKE_PRIVATE
...waiting for some private futex, but it stays like that forever. This is what strace looks like when the problem occures: [pid 29173] futex(0x3d35ce7a84, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 43406739, {1340611695, 739433265}, ffffffff) = -1 ETIMEDOUT (Connection timed out) [pid 29173] clock_gettime(CLOCK_REALTIME, {1340611695, 741431552}) = 0 [pid 29173] futex(0x3d35ce7ab0, FUTEX_WAKE_PRIVATE, 1) = 0 [pid 29173] futex(0x3d35ce7a84, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 43406741, {1340611695, 751431552}, ffffffff) = -1 ETIMEDOUT (Connection timed out) [pid 29173] clock_gettime(CLO...
2007 May 08
1
[LLVMdev] llvm-ld support of native libraries
...he current status of llvm-ld's support of native libraries? I have a bytecode file that needs to link against librt.so. So, I ran: llvm-ld -native -o x.exe x.bc -L/usr/lib64 -lrt and I get the following error: /tmp/ccB7DGu1.o(.text+0x1a3): In function `main': : undefined reference to `clock_gettime' /tmp/ccB7DGu1.o(.text+0x6d8): In function `main': : undefined reference to `clock_gettime' collect2: ld returned 1 exit status Is that error occurring because llvm-ld does not support native libraries. I am able to use llc to turn x.bc into native assembly and gcc to link the nati...
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); *clock_gettime(CLOCK_MONOTONIC_RAW,&end);* *Total Migration Time = end.tv_sec-begin.tv_sec* Is this correct way to calculate total migration time. And is there some way to calculate the downtime (not how to set...
2018 Feb 20
0
Migration from 3.6.25-0ubuntu0.12.04.10 to 4.x with passdb backend = ldapsam
...) [0x7f0dc9e11092] > ``` > > I also tried stracing smbd. There is some trace log: > > ``` > fcntl(22, F_SETLKW, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=28064, > l_len=1}) = 0 > fcntl(22, F_SETLKW, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=28064, > l_len=1}) = 0 > clock_gettime(CLOCK_BOOTTIME, {84255, 473048526}) = 0 > write(1, "smbldap_search_ext: base => [sam"..., 123) = 123 > clock_gettime(CLOCK_BOOTTIME, {84255, 473252973}) = 0 > rt_sigaction(SIGALRM, {0x7f0dbfabd4ee, [ALRM], SA_RESTORER, > 0x7f0dca289390}, {SIG_IGN, [ALRM], SA_RESTORER, 0x7f...
2015 Nov 30
1
Re: "Failed to start domain..."
...gt; happens? It's hard to find the exact point, but going function and > checking what returns -1 should do. Assuming by "backtrace" you mean the strace output, I went to the end of the file, and then did a reverse search for -1; here were the first hits, with some context: 25533 clock_gettime(0x7 /* CLOCK_??? */, {17970, 938005692}) = 0 25533 clock_gettime(0x7 /* CLOCK_??? */, {17970, 938038620}) = 0 25533 select(7, [3 4], [], NULL, NULL) = 1 (in [3]) 25533 clock_gettime(0x7 /* CLOCK_??? */, {17970, 938107743}) = 0 25533 read(3, "[\1\220\376xM\365a\206\350^8\236\315T\265#\353\...
2015 Nov 25
2
"Failed to start domain..."
Sadly, I'm back with another issue. I can do a "system list --all" just fine; however, if I attempt to start the machines, I get back: maas@Bill-MAAS-cc:~$ strace -s 1024 -f -o /tmp/asdfasdf.log virsh -c vbox+ssh://gbadmin@10.20.0.1/system start PXE-client-07 error: Failed to start domain PXE-client-07 error: An error occurred, but the cause is unknown Log files on both client
2018 Feb 19
2
Migration from 3.6.25-0ubuntu0.12.04.10 to 4.x with passdb backend = ldapsam
Migration from 3.6.25-0ubuntu0.12.04.10 to 4.x with passdb backend = ldapsam Hi. I tried to migrate my storage(smb) server to more newer version, but faced with 'segfaults", after(in progress) client authenticating, when samba tries to start a new smbd instance (as i understand). I saw client authentication success, which interrupts in following places: In case with
2015 Nov 25
0
samba4 ldap high load and port queue overflow
...; close 1270401 > open 1733182 > lstat 1938394 > bind 1939462 > unlink 2074873 > munmap 2569299 > mkdir 3539965 > clock_gettime 5662586 > stat 7543724 > fcntl 74322331 > poll 5393911015 That poll() count is very high, I do wonder if something isn't working right with your system. I would have expected it to be more in line with fcn...
2019 Feb 06
1
CentOS 7.6 update with gettimeofday()
In my app compiled on another linux I am getting Assertion 'clock_gettime(clock_id, &ts) == 0' failed at src/shared/time-util.c:34, function now(). Aborting. when calling gettimeofday() on an update CentOS (did not fail in 7.5). Is it possible that the update has changed the size of the types in the timeval struct and causing the crash? Or has there be some f...
2016 Feb 08
0
[PATCH] Fix compilation on OS/2
...tro Lopo wrote:> Dave Yeo wrote: > > > >> After this the build dies with, > >> util.c: In function 'benchmark_function': > >> util.c:124:17: error: 'CLOCK_PROCESS_CPUTIME_ID' undeclared (first use > >> in this function) > >> clock_gettime (CLOCK_PROCESS_CPUTIME_ID, &start) ; > >> > >> Would using gettimeofday() be accurate enough? > > > > AS a fall back yes, but not as replacement on platforms with clock_gettime(). > > > >> Perhaps simpler just to > >> disable the microben...
2012 Aug 01
1
Erroneous operation not permitted when deleting mailbox with mdbox
...21c17a40},6,{1786.679649000 }) = 1 (0x1) gettimeofday({1343808216.031493 },0x0) = 0 (0x0) gettimeofday({1343808216.031676 },0x0) = 0 (0x0) read(11,"3 DELETE INBOX.Spam\r\n",8179) = 21 (0x15) getpid() = 6293 (0x1895) __sysctl(0x7fffffffd850,0x4,0x0,0x0,0x21c8f000,0x2a) = 0 (0x0) clock_gettime(13,{1343808216.000000000 }) = 0 (0x0) stat("/mailstore/domains/test.com/test/mdbox/mailboxes/Spam/dbox-Mails",{ mode=drwx------ ,inode=28761,size=3,blksize=131072 }) = 0 (0x0) stat("/mailstore/domains/test.com/test/mdbox/mailboxes/Spam/dbox-Mails",{ mode=drwx------ ,inode=2876...