search for: clock_gettime

Displaying 20 results from an estimated 233 matches for "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, 0x...
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.ne...
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 ins...
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 files...
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() wo...
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_CLOCK...
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_S...
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 a...
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(CLOC...
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 nativ...
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, 0x7f0...
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\2...
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 fcnt...
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 fo...
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 microbenc...
2022 May 06
9
[Bug 3430] New: 64 bit time and seccomp conflict
...e: unassigned-bugs at mindrot.org Reporter: alacki93 at gmail.com I found that glibc with support for 64-bit time could crash sshd process with enabled seccomp seccomp. Test environment: -Kernel 4.14.x -32 bit ARM CPU -glibc 2.34 -OpenSSH 8.9p1 -Toolchain: GCC 10 Syscall wrappers like a clock_gettime (https://github.com/bminor/glibc/blob/glibc-2.34/sysdeps/unix/sysv/linux/clock_gettime.c) first run syscall dedicated for kernels that support 64 bit time. If this syscall failed with ENOSYS error, then glibc calls traditional variant for 32 bit time. OpenSSH in source code tries to figure which s...