Sponsored Content
Operating Systems Linux Red Hat lightweight function for measuring time ( better than clock_getime ) Post 302539401 by manustone on Sunday 17th of July 2011 07:07:16 AM
Old 07-17-2011
lightweight function for measuring time ( better than clock_getime )

HI
I have a Red Hat Enterprise with Real Time kernel.

Are you aware if there are C functions for this kernel or some code/library for this OS for measuring time more lightweight than clock_gettime and gettimeofday? THe hardware I have is NUMA.

Reading forums I found gethrtime but it is available on Solaris only; this last spends few cycles compared to clock_gettime and gettimeofday eating the CPU.

Do you know if for Red Hat someomene did something similar?
My distro is the following

THanks a lot

Code:
     uname -a
     Linux lndbxdev01 2.6.24.7-108.el5rt #1 SMP PREEMPT RT 
     Mon Mar 23 10:58:10 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

     cat/etc/redhat-release
     Red Hat Enterprise Linux Server release 5.3 (Tikanga)

 

7 More Discussions You Might Find Interesting

1. Programming

Measuring System Call Time

Can anyone please help me in measuring the system call timings! How do I do it if I have to measure the timing of an operation, say getpid system call. What different functions can I use for that and what would be the difference using each of them? Thanx! (3 Replies)
Discussion started by: chacha
3 Replies

2. Programming

C time in milliseconds function.

I need a c function which return the time in: hour min sec and mil sec I am writing on unix os. (3 Replies)
Discussion started by: kamil
3 Replies

3. Shell Programming and Scripting

time function

Hi, I would like to display the exact time taken to complete running a particular tool or function or program to user I don't know the exact time functions in unix, please help me thanks in advance Example: $test.ksh output should be The... (10 Replies)
Discussion started by: hsekol
10 Replies

4. Programming

function time

Hello I have problem with function 'time' to test my program for file copying . How to run the function in my source code ? I try something like that: system("time"); < -- but this don't working (2 Replies)
Discussion started by: scotty_123
2 Replies

5. Shell Programming and Scripting

Nawk Time Function

Hi All, I am using solaris and nawk. Is there any time function in nawk which is simliar to the shell `date` function ? Can any experts show any examples? (4 Replies)
Discussion started by: Raynon
4 Replies

6. UNIX for Dummies Questions & Answers

time function

hello everybody! i want to post a question. So, I use the command 'time a.out' to time the duration of the program a.out. The return value of this function was: real 0m4.116s user 0m4.112s sys 0m0.016s What i want is! I try to find a way to get (NOT manually) the value of real time.... (2 Replies)
Discussion started by: nicos
2 Replies

7. Ubuntu

Measuring the correctness of ndelay() function.

I wrote this kernel module to test the correctness of ndelay() function. Kernel mdoule: #include <linux/module.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/time.h> #include <linux/delay.h> static int __init initialize(void) { ktime_t start, end; s64... (1 Reply)
Discussion started by: BHASKAR JUPUDI
1 Replies
RHN-PROFILE-SYNC(8)						   Red Hat, Inc.					       RHN-PROFILE-SYNC(8)

NAME
rhn-profile-sync - Update system information on Red Hat Network. SYNOPSIS
rhn-profile-sync [options] DESCRIPTION
rhn-profile-sync is a client program that connects to Red Hat Network (or a Red Hat Network Satellite) and refreshes the data stored for this system. rhn-profile-sync updates data about installed packages, machine hardware, and virtual guest instances (if virtualization is enabled). OPTIONS
-v, --verbose Increase the debugging output. --proxy=PROXY Specify an http proxy to use. --proxyUser=PROXYUSER Specify a username to use for an authenticated proxy. This option must be used in conjunction with proxyPassword. --proxyPassword=PROXYPASSWORD Specify a password to use for an authenticated proxy. This option must be used in conjunction with proxyUser. --version Show the program's version number and exit. -h, --help Show a help message and exit. FILES
/etc/sysconfig/rhn/up2date The common configuration file used by RHN client programs. SEE ALSO
rhn_check(8), rhn_register(8), rhnreg_ks(8), rhnsd(8), up2date(5). AUTHORS
See the AUTHORS file included with this software. This manual page was written by James Bowes <jbowes@redhat.com> BUGS
Report bugs to <http://bugzilla.redhat.com>. COPYRIGHT
Copyright (C) 1999-2010 Red Hat, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. Linux 2010 August 30 RHN-PROFILE-SYNC(8)
All times are GMT -4. The time now is 01:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy