Sponsored Content
Top Forums UNIX for Advanced & Expert Users improve performance by using ls better than find Post 48378 by Nicol on Friday 5th of March 2004 07:22:03 AM
Old 03-05-2004
Thanks Perderabo ,

some little tries with timex command (under AIX) show quickly the gain i get for my treatment.

and thanks for the explanations , the solution is not the only purpose !

regards
christian
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

egrep is very slow : How to improve performance

We have an egrep search in a while loop. egrep -w "$key" ${PICKUP_DIR}/new_update >> ${PICKUP_DIR}/update_record_new ${PICKUP_DIR}/new_update is 210 MB file In each iteration, the egrep on an average takes around 50-60 seconds to search. Ther'es nothing significant in the loop other... (7 Replies)
Discussion started by: hidnana
7 Replies

2. Shell Programming and Scripting

How to improve grep performance...

Hi All, I am using grep command to find string "abc" in one file . content of file is *********** abc = xyz def= lmn ************ i have given the below mentioned command to redirect the output to tmp file grep abc file | sort -u | awk '{print #3}' > out_file Then i am searching... (2 Replies)
Discussion started by: pooga17
2 Replies

3. UNIX for Dummies Questions & Answers

Improve Performance

hi someone tell me which ways i can improve disk I/O and system process performance.kindly refer some commands so i can do it on my test machine.thanks, Mazhar (2 Replies)
Discussion started by: mazhar99
2 Replies

4. Shell Programming and Scripting

Any way to improve performance of this script

I have a data file of 2 gig I need to do all these, but its taking hours, any where i can improve performance, thanks a lot #!/usr/bin/ksh echo TIMESTAMP="$(date +'_%y-%m-%d.%H-%M-%S')" function showHelp { cat << EOF >&2 syntax extreme.sh FILENAME Specify filename to parse EOF... (3 Replies)
Discussion started by: sirababu
3 Replies

5. Shell Programming and Scripting

Improve the performance of a shell script

Hi Friends, I wrote the below shell script to generate a report on alert messages recieved on a day. But i for processing around 4500 lines (alerts) the script is taking aorund 30 minutes to process. Please help me to make it faster and improve the performace of the script. i would be very... (10 Replies)
Discussion started by: apsprabhu
10 Replies

6. Shell Programming and Scripting

Want to improve the performance of script

Hi All, I have written a script as follows which is taking lot of time in executing/searching only 3500 records taken as input from one file in log file of 12 GB Approximately. Working of script is read the csv file as an input having 2 arguments which are transaction_id,mobile_number and search... (6 Replies)
Discussion started by: poweroflinux
6 Replies

7. Shell Programming and Scripting

How to improve the performance of parsers in Perl?

Hi, I have around one lakh records. I have used XML for the creation of the data. I have used these 2 Perl modules. use XML::DOM; use XML::LibXML; The data will loo like this and most it is textual entries. <eid>19000</eid> <einfo>This is the ..........</einfo> ......... (3 Replies)
Discussion started by: vanitham
3 Replies

8. Programming

Help with improve the performance of grep

Input file: #content_1 12314345345 242467 #content_14 436677645 576577657 #content_100 3425546 56 #content_12 243254546 1232454 . . Reference file: content_100 (1 Reply)
Discussion started by: cpp_beginner
1 Replies

9. UNIX for Dummies Questions & Answers

How to improve the performance of this script?

Hi , i wrote a script to convert dates to the formate i want .it works fine but the conversion is tkaing lot of time . Can some one help me tweek this script #!/bin/bash file=$1 ofile=$2 cp $file $ofile mydates=$(grep -Po '+/+/+' $ofile) # gets 8/1/13 mydates=$(echo "$mydates" | sort |... (5 Replies)
Discussion started by: vikatakavi
5 Replies

10. Programming

Improve the performance of my C++ code

Hello, Attached is my very simple C++ code to remove any substrings (DNA sequence) of each other, i.e. any redundant sequence is removed to get unique sequences. Similar to sort | uniq command except there is reverse-complementary for DNA sequence. The program runs well with small dataset, but... (11 Replies)
Discussion started by: yifangt
11 Replies
explain_adjtimex(3)					     Library Functions Manual					       explain_adjtimex(3)

NAME
explain_adjtimex - explain adjtimex(2) errors SYNOPSIS
#include <libexplain/adjtimex.h> const char *explain_adjtimex(struct timex *data); const char *explain_errno_adjtimex(int errnum, struct timex *data); void explain_message_adjtimex(char *message, int message_size, struct timex *data); void explain_message_errno_adjtimex(char *message, int message_size, int errnum, struct timex *data); DESCRIPTION
These functions may be used to obtain explanations for errors returned by the adjtimex(2) system call. explain_adjtimex const char *explain_adjtimex(struct timex *data); The explain_adjtimex function is used to obtain an explanation of an error returned by the adjtimex(2) system call. The least the message will contain is the value of strerror(errno), but usually it will do much better, and indicate the underlying cause in more detail. The errno global variable will be used to obtain the error value to be decoded. data The original data, exactly as passed to the adjtimex(2) system call. Returns: The message explaining the error. This message buffer is shared by all libexplain functions which do not supply a buffer in their argument list. This will be overwritten by the next call to any libexplain function which shares this buffer, including other threads. Note: This function is not thread safe, because it shares a return buffer across all threads, and many other functions in this library. Example: This function is intended to be used in a fashion similar to the following example: int result = adjtimex(data); if (result < 0) { fprintf(stderr, "%s ", explain_adjtimex(data)); exit(EXIT_FAILURE); } The above code example is available pre-packaged as the explain_adjtimex_or_die(3) function. explain_errno_adjtimex const char *explain_errno_adjtimex(int errnum, struct timex *data); The explain_errno_adjtimex function is used to obtain an explanation of an error returned by the adjtimex(2) system call. The least the message will contain is the value of strerror(errno), but usually it will do much better, and indicate the underlying cause in more detail. errnum The error value to be decoded, usually obtained from the errno global variable just before this function is called. This is neces- sary if you need to call any code between the system call to be explained and this function, because many libc functions will alter the value of errno. data The original data, exactly as passed to the adjtimex(2) system call. Returns: The message explaining the error. This message buffer is shared by all libexplain functions which do not supply a buffer in their argument list. This will be overwritten by the next call to any libexplain function which shares this buffer, including other threads. Note: This function is not thread safe, because it shares a return buffer across all threads, and many other functions in this library. Example: This function is intended to be used in a fashion similar to the following example: int result = adjtimex(data); if (result < 0) { int err = errno; fprintf(stderr, "%s ", explain_errno_adjtimex(err, data)); exit(EXIT_FAILURE); } The above code example is available pre-packaged as the explain_adjtimex_or_die(3) function. explain_message_adjtimex void explain_message_adjtimex(char *message, int message_size, struct timex *data); The explain_message_adjtimex function is used to obtain an explanation of an error returned by the adjtimex(2) system call. The least the message will contain is the value of strerror(errno), but usually it will do much better, and indicate the underlying cause in more detail. The errno global variable will be used to obtain the error value to be decoded. message The location in which to store the returned message. If a suitable message return buffer is supplied, this function is thread safe. message_size The size in bytes of the location in which to store the returned message. data The original data, exactly as passed to the adjtimex(2) system call. Example: This function is intended to be used in a fashion similar to the following example: int result = adjtimex(data); if (result < 0) { char message[3000]; explain_message_adjtimex(message, sizeof(message), data); fprintf(stderr, "%s ", message); exit(EXIT_FAILURE); } The above code example is available pre-packaged as the explain_adjtimex_or_die(3) function. explain_message_errno_adjtimex void explain_message_errno_adjtimex(char *message, int message_size, int errnum, struct timex *data); The explain_message_errno_adjtimex function is used to obtain an explanation of an error returned by the adjtimex(2) system call. The least the message will contain is the value of strerror(errno), but usually it will do much better, and indicate the underlying cause in more detail. message The location in which to store the returned message. If a suitable message return buffer is supplied, this function is thread safe. message_size The size in bytes of the location in which to store the returned message. errnum The error value to be decoded, usually obtained from the errno global variable just before this function is called. This is neces- sary if you need to call any code between the system call to be explained and this function, because many libc functions will alter the value of errno. data The original data, exactly as passed to the adjtimex(2) system call. Example: This function is intended to be used in a fashion similar to the following example: int result = adjtimex(data); if (result < 0) { int err = errno; char message[3000]; explain_message_errno_adjtimex(message, sizeof(message), err, data); fprintf(stderr, "%s ", message); exit(EXIT_FAILURE); } The above code example is available pre-packaged as the explain_adjtimex_or_die(3) function. SEE ALSO
adjtimex(2) tune kernel clock explain_adjtimex_or_die(3) tune kernel clock and report errors COPYRIGHT
libexplain version 0.52 Copyright (C) 2009 Peter Miller explain_adjtimex(3)
All times are GMT -4. The time now is 12:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy