7 More Discussions You Might Find Interesting
1. Red Hat
Hello,
I have Red Hat 5.7 running on HP hardware box. All file systems (except root) are in LVM. I have to create a new file-system and Storage team allocated 8 luns to this server. I scanned them on OS level with below command
for x in {0..9}; do echo '- - -' > /sys/class/scsi_host/host$x/scan;... (0 Replies)
Discussion started by: solaris_1977
0 Replies
2. UNIX for Dummies Questions & Answers
I have a file containing 4 columns.
need to scan that file, if all the rows in the column4 have a value ZERO, it should print "everything is fine".
And if all are not ZERO , at the first encounter of non ZERO value of 4th column it should print "some problem "
may be a silly question, but at... (11 Replies)
Discussion started by: gotam
11 Replies
3. Solaris
we have a mjial server running on solaris 9.
we have about 10K attachment a day that we need to scan for virus type things.
in the past we have been using Mcafee.
problem is that since the new 5.10 version we find it is running too slow.
the question is what AV products are can run on... (0 Replies)
Discussion started by: robsonde
0 Replies
4. UNIX for Advanced & Expert Users
Is there any way to look for a directory path that is listed any number of lines *before* a keyword in an error message?
I have a script that is trying to process different files that are always down a certain portion of a path, and if there is an error, then says there is an error, contact... (2 Replies)
Discussion started by: tekster757
2 Replies
5. Solaris
Trying to reach a formula on Solaris 9 for calculating the Memory utilization percentage, i have encountered a lot of indicators and metrices, however i have faced a case today which confused me.
How to get a Zero Scan Rate along an hour whilst the Paging activity (Pages IN & Pages Out) are not... (4 Replies)
Discussion started by: Negm
4 Replies
6. Shell Programming and Scripting
Hello
I am a novice shell scripting programmer, so please bare with me.
I have embedded a simple SQL statement into a shell script, which simply returns an integer (its a count (*) statement).
The result of the statement is then oputput to .txt file. So, the number could be 0, 1,2, 10,... (4 Replies)
Discussion started by: man80
4 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I want to produce a text file representing a list of empty directories on a unix system starting from a specified directory.
I hope I explained well my problem.
Thanks in advance. (7 Replies)
Discussion started by: N065956BM
7 Replies
gethrtime(3C) Standard C Library Functions gethrtime(3C)
NAME
gethrtime, gethrvtime - get high resolution time
SYNOPSIS
#include <sys/time.h>
hrtime_t gethrtime(void);
hrtime_t gethrvtime(void);
DESCRIPTION
The gethrtime() function returns the current high-resolution real time. Time is expressed as nanoseconds since some arbitrary time in the
past; it is not correlated in any way to the time of day, and thus is not subject to resetting or drifting by way of adjtime(2) or settime-
ofday(3C). The hi-res timer is ideally suited to performance measurement tasks, where cheap, accurate interval timing is required.
The gethrvtime() function returns the current high-resolution LWP virtual time, expressed as total nanoseconds of execution time.
The gethrtime() and gethrvtime() functions both return an hrtime_t, which is a 64-bit (long long) signed integer.
EXAMPLES
The following code fragment measures the average cost of getpid(2):
hrtime_t start, end;
int i, iters = 100;
start = gethrtime();
for (i = 0; i < iters; i++)
getpid();
end = gethrtime();
printf("Avg getpid() time = %lld nsec
", (end - start) / iters);
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
proc(1), adjtime(2), gettimeofday(3C), settimeofday(3C), attributes(5)
NOTES
Although the units of hi-res time are always the same (nanoseconds), the actual resolution is hardware dependent. Hi-res time is guaran-
teed to be monotonic (it won't go backward, it won't periodically wrap) and linear (it won't occasionally speed up or slow down for adjust-
ment, like the time of day can), but not necessarily unique: two sufficiently proximate calls may return the same value.
SunOS 5.10 7 Sep 2004 gethrtime(3C)