search for: getrusag

Displaying 20 results from an estimated 118 matches for "getrusag".

Did you mean: getrusage
2006 Mar 02
1
Failing to understand getrusage()
I'm failing to understand how getrusage() works, which is a bit perplexing, because it doesn't seem like it would be terribly complicated. I've attached the code. My aim is to verify that I can use getrusage() to do (admittedly crude) instrumentation of which functions in my program are allocating lots of memory[1]. So I figu...
2000 Jun 12
0
getrusage() privileged on Solaris 2.5.1
The builtin entropy gathering code in OpenSSH 2.1.1p1 tries to use getrusage() if it's available. This function is available on Solaris 2.5.1, but you must have root permissions to run it. However, configure.in uses only AC_CHECK_FUNCS() to look for getrusage, and this only tests for a successful link. For this function you need to do a more thorough check and actua...
2000 Jun 15
1
problem in entropy.c if no getrusage
...RUSAGE_SELF and RUSAGE_CHILDREN *** entropy.c.orig Thu Jun 15 13:57:28 2000 --- entropy.c Thu Jun 15 13:58:25 2000 *************** *** 201,207 **** --- 201,209 ---- total_entropy_estimate += stir_gettimeofday(1.0); total_entropy_estimate += stir_clock(0.2); + #ifdef HAVE_GETRUSAGE total_entropy_estimate += stir_rusage(RUSAGE_SELF, 2.0); + #endif return(total_entropy_estimate); } *************** *** 247,254 **** --- 249,258 ---- /* Execution times should be a little unpredictable */ total_entropy_es...
2009 Aug 12
0
Problem with Linux x86_64 RODBC and Netezza (PR#13889)
...ndto(3, "P\0\0\0\5select identifier_case, cur"..., 59, 0, NULL, 0) = 59 recvfrom(3, "P\0\0\0\5\0\0\0\6blank\0T\0\0\0\5\0\0\0P\0\3IDENTI"..., 16384, 0, NULL, NULL) = 174 write(1, "> ", 2) = 2 write(1, "conn\n", 5) = 5 getrusage(RUSAGE_SELF, {ru_utime={0, 357945}, ru_stime={0, 82987}, ...}) = 0 getrusage(RUSAGE_CHILDREN, {ru_utime={0, 0}, ru_stime={0, 999}, ...}) = 0 write(1, "RODBC Connection ", 17) = 17 write(1, "1", 1) = 1 write(1, "\nDetails:\n ", 12)...
2006 Oct 31
0
6288308 Unintialized struct causes getrusage(3C) to return bogus data
Author: johansen Repository: /hg/zfs-crypto/gate Revision: 975d44f4cb80f31c669fd814d1fdeea15318aa5b Log message: 6288308 Unintialized struct causes getrusage(3C) to return bogus data Files: update: usr/src/uts/common/syscall/rusagesys.c
2001 Jun 07
0
Patch for systems with no setreuid()
...E_SETRLIMIT --- configure.orig Thu Jun 7 14:12:53 2001 +++ configure Thu Jun 7 14:13:40 2001 @@ -3184,7 +3184,7 @@ fi -for ac_func in arc4random atexit b64_ntop bcopy bindresvport_sa clock fchown fchmod freeaddrinfo futimes gai_strerror getcwd getaddrinfo getgrouplist getnameinfo getrlimit getrusage getttyent getusershell glob inet_aton inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove mkdtemp on_exit openpty realpath rresvport_af setdtablesize setenv setegid seteuid setlogin setproctitle setresgid setreuid setrlimit setsid sigaction sigvec snprintf strerror strlcat strlcpy strmo...
2010 Apr 25
2
[git pull] small fixes, sh4, getruage() README's
hello hpa, current patch queue for review, please pull: git pull git://git.debian.org/users/maks/klibc.git maks Aurelien Jarno (1): [klibc] sh4: syscalls fixes Benjamin Cama (1): [klibc] fstype: btrfs size endianness fix Thorsten Glaser (1): [klibc] add getrusage() maximilian attems (3): [klibc] resume: silence warning on resume try [klibc] bootp_packet.h minor stylistic fix [klibc] fstype: list the includes in alphabetic order git diff -M --stat --summary master...maks usr/include/sys/resource.h | 2 ++ usr/kinit/fstype/fs...
2010 Jul 07
0
[git pull v2] x86_32, sh4, getrusage()
...ixes Benjamin Cama (1): [klibc] fstype: btrfs size endianness fix Mike Waychison (2): [klibc] CFLAGS: enable -fwrapv [klibc] Add ancillary data structures and macros to sys/socket.h Sam Ravnborg (1): [klibc] fix build on native i386 Thorsten Glaser (1): [klibc] add getrusage() maximilian attems (6): [klibc] resume: silence warning on resume try [klibc] bootp_packet.h minor stylistic fix [klibc] fstype: list the includes in alphabetic order [klibc] ipconfig: packet_send() fix uninitialized valgrind errors [klibc] valgrind: netdev_sif_addr...
2020 Nov 06
2
vsz_limit
...> I can't find "src/lib/restrict.h" . Is it in dovecot source ? > > > On 2020-11-06 13:20, Aki Tuomi wrote: > > Seems I had forgotten that you can use src/lib/restrict.h, in particular, restrict_get_process_size() to figure out the limit. You can combine this with getrusage to find out current usage. > > > > Aki > > > > > > > On 06/11/2020 13:26 Joan Moreau <jom at grosjo.net> wrote: > > > > > > > > > yes, will do so. > > > It would be nice however to be able to access the actual dovecot...
2006 Mar 17
1
[PATCH] OpenSSL RNG initialization
...ise \ strcasecmp stricmp vsnprintf vsyslog writev pread \ setrlimit setproctitle seteuid setreuid setegid setresgid \ - strtoull strtouq setpriority quotactl getmntent kqueue kevent) + strtoull strtouq setpriority quotactl getmntent kqueue kevent \ + getrusage) dnl * I/O loop function have_ioloop=no Index: src/lib/lib.h =================================================================== RCS file: /home/cvs/dovecot/src/lib/lib.h,v retrieving revision 1.20 diff -u -r1.20 lib.h --- src/lib/lib.h 25 Sep 2005 10:44:04 -0000 1.20 +++ src/lib/lib.h 10 Mar 2006...
2008 Sep 22
1
Profiling on Multicore and Parallel Systems
...which are optimized for parallel or multicore architectures as over there user time can be more than the elapsed time and one would be more interested in just the "elapsed" time taken by computation returned by gettimeofday() per routine rather than "user" time as returned by getrusage(). Could anyone provide any pointers on how to best do R profiling on parallel and multicore systems. Regards, -- Imanpreet Singh Arora [[alternative HTML version deleted]]
2004 Mar 30
1
[Bug 565] gcc 3.2.3 compiler warnings for openssh-3.6.1p2 on Solaris 7
...target type Still there. >session.c:2081: warning: implicit declaration of function `gethostname' Solaris 2.5.1 has gethostname but no prototype for it. >monitor.c:1038: warning: int format, pid_t arg (arg 4) Gone. >ssh-rand-helper.c:254: warning: implicit declaration of function `getrusage' No prototype for getrusage. >ssh-rand-helper.c:535: warning: int format, uid_t arg (arg 3) >ssh-rand-helper.c:553: warning: int format, uid_t arg (arg 2) >ssh-rand-helper.c:592: warning: int format, uid_t arg (arg 2) All gone. >sftp-server.c:604: warning: implicit declaration of...
2001 May 22
1
[PATCH]: configure.in: Missing check for setvbuf
...+++ configure.in 2001/05/22 11:59:54 @@ -460,7 +460,7 @@ AC_ARG_WITH(tcp-wrappers, ) dnl Checks for library functions. -AC_CHECK_FUNCS(arc4random atexit b64_ntop bcopy bindresvport_sa clock fchown fchmod freeaddrinfo futimes gai_strerror getcwd getaddrinfo getgrouplist getnameinfo getrlimit getrusage getttyent getusershell glob inet_aton inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove mkdtemp on_exit openpty realpath rresvport_af setdtablesize setenv setegid seteuid setlogin setproctitle setresgid setreuid setrlimit setsid sigaction sigvec snprintf strerror strlcat strlcpy strmo...
2010 Oct 04
0
Python resource module returns just zeros
I'm using a call to the resource module's getrusage method. On openSUSE this works, on CentOS [python26-2.6.5-3.el5] it 'works' but just returns zeros for the memory utilization values. resource.getrusage(resource.RUSAGE_SELF).ru_maxrss openSUSE: returns 5512 CentOS: returns 0 Anyone know what condition causes this? Or is there a bet...
2008 Sep 22
1
Profiling on Multicore and Parallel Systems
...which are optimized for parallel or multicore architectures as over there user time can be more than the elapsed time and one would be more interested in just the "elapsed" time taken by computation returned by gettimeofday() per routine rather than "user" time as returned by getrusage(). Could anyone provide any pointers on how to best do R profiling on parallel and multicore systems. Regards, -- Imanpreet Singh Arora [[alternative HTML version deleted]]
2014 Mar 11
0
[PATCH] add mips64 support
...nclude/sys/resource.h b/usr/include/sys/resource.h > index 5d8bd52..35398a7 100644 > --- a/usr/include/sys/resource.h > +++ b/usr/include/sys/resource.h > @@ -12,6 +12,8 @@ > __extern int getpriority(int, int); > __extern int setpriority(int, int, int); > > -__extern int getrusage(int, struct rusage *); > +#if !defined(__mips64) > + __extern int getrusage(int, struct rusage *); > +#endif > Say what? > diff --git a/usr/klibc/arch/mips64/crt0.S b/usr/klibc/arch/mips64/crt0.S > new file mode 100644 > index 0000000..142d9f2 > --- /dev/null > +++ b...
2017 Jul 15
2
observium graphs
...make sense and have observium plot two data sources with different orders of magnitudes right into one graph. So I'd like to ask for your valuable recommendations as for: - What kind of data should be graphed? Global stats or on a per domain level? - What data types to graph? (e.g. stats, getrusage, io, storage, auth check https://wiki2.dovecot.org/Statistics#line-65 for details) - What values should be combined into a single graph? - How often would you reset stats (cronjob calling doveadm stats reset)? Thanks Thomas [1]: http://www.observium.org/ [2]: http://docs.observium.org/apps/...
2020 Nov 06
1
vsz_limit
Seems I had forgotten that you can use src/lib/restrict.h, in particular, restrict_get_process_size() to figure out the limit. You can combine this with getrusage to find out current usage. Aki > On 06/11/2020 13:26 Joan Moreau <jom at grosjo.net> wrote: > > > yes, will do so. > It would be nice however to be able to access the actual dovecot config from the plugin side > > > > On 2020-11-04 06:46, Aki Tuomi wrote: &g...
2003 Mar 31
2
basename() in libgen
IRIX 6.5 has the basename() function in libgen. SYNOPSIS cc [flag ...] file ... -lgen [library ...] #include <libgen.h> char *basename (char *path); -- ayamura
2001 Sep 29
0
configure.in fixes for 2.9.9p2
.... if test -z "$no_comp_check" ; then @@ -481,7 +494,14 @@ ) dnl Checks for library functions. -AC_CHECK_FUNCS(arc4random atexit b64_ntop bcopy bindresvport_sa clock dirname fchown fchmod freeaddrinfo futimes gai_strerror getcwd getaddrinfo getgrouplist getopt getnameinfo getrlimit getrusage getttyent glob inet_aton inet_ntoa inet_ntop innetgr login_getcapbool md5_crypt memmove mkdtemp on_exit openpty readpassphrase realpath rresvport_af setdtablesize setenv setegid seteuid setlogin setproctitle setresgid setreuid setrlimit setsid setvbuf sigaction sigvec snprintf strerror strlcat str...