Sponsored Content
Full Discussion: tuning
Operating Systems Solaris tuning Post 302197355 by s93366 on Tuesday 20th of May 2008 10:39:53 PM
Old 05-20-2008
on the clients you may also look at options like rsize, wsize and directio (for certain applications) on the client side

check the man pages.

/peter
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Performance tuning.

can someone tell me a good site to go to in order to learn this. please do not recommen nay books because i dont have interest in that. if you know of any good sites with good straight forward explanation on how to split loads on machines that has excessive loading, please let me know Also,... (1 Reply)
Discussion started by: TRUEST
1 Replies

2. UNIX for Dummies Questions & Answers

Performance Tuning

Hi to all, I'm interested in finding an introduction about Performance Tuning under Unix (or Linux); can somebody please point me in the right direction? Best regards (1 Reply)
Discussion started by: domyalex
1 Replies

3. UNIX for Advanced & Expert Users

SAS Tuning

Does anyone had perfomed a tuning with SAS on Solaris??? Performance is not so good and I found out that Share Memory an Semaphores are the same that initial instalation, I havent found info at internet Please help (1 Reply)
Discussion started by: alex blanco
1 Replies

4. UNIX for Advanced & Expert Users

Tuning AIX IO

Hi I am trying to investigate a disk performance issue, and we are not seem to be hitting the right direction in our analysis. This is a FC disk running on USP1000 HDS system. The application is an IO intensive application, but our opinion is that it is not performing due to perceived disk... (1 Reply)
Discussion started by: theerthan
1 Replies

5. Shell Programming and Scripting

Performance Tuning

Hi All, In last one week, i have posted many questions in this portal. At last i am succeeded to make my 1st unix script. following are 2 points where my script is taking tooooo long. 1. Print the total number of records excluding header & footer. I have found that awk 'END{print NR -... (2 Replies)
Discussion started by: Amit.Sagpariya
2 Replies

6. Web Development

MySQL Tuning Tools with mysqltuner.pl and tuning-primer.sh

We have been tuning MySQL lately and I ran accoss two useful tools that you might be interested in: mysqltuner.pl tuning-primer.sh Both of these scripts are quite useful for MySQL tuning. Here is some sample output of mysqltuner.pl >> MySQLTuner 0.9.8 - Major Hayden... (3 Replies)
Discussion started by: Neo
3 Replies

7. Web Development

Apache Tuning

Hi Friends, This regarding tuning apache. I am running 100+ LAMP on VPS. But few of them are crashing becoz it reaches to the MaxClient Limit. I thought of Tuning. Here are the specs: OS: OpenSuse 10 Apache: Apche/2.2.8 PHP: PHP 5.x RAM: 1GB Assuming 80% of it has been occupied by... (6 Replies)
Discussion started by: r00t4u
6 Replies

8. AIX

I/O tuning for oracle

is it a good practice to enable AIO (Async I/O) and mount the oracle file system with DIO with JFS2 (Direct I/O) option? please help (3 Replies)
Discussion started by: pchangba
3 Replies

9. Shell Programming and Scripting

Tuning function

This is my function in UNIX file. In this function I am -> first replacing spaces in character 19-27 with 0 -> then if it's all zeros ( 9 zeros) replace it with space The reason I have to make it to 0 first is that my requirement is that if this field is having value of 0 , replace it... (4 Replies)
Discussion started by: varunrbs
4 Replies

10. Solaris

nxge tuning

Hi all, I would like to tune the nxge card as suggested by this link, but got some confusion. Can anyone advise me ? We have SunOS hsbc02 5.10 Generic_137137-09 sun4v sparc SUNW,Netra-CP3260 Do I have to install any patches ? The tunning link Networks - Siwiki In our nxge.conf, I... (0 Replies)
Discussion started by: dehetoxic
0 Replies
getsubopt(3C)															     getsubopt(3C)

NAME
getsubopt - parse suboption arguments from a string SYNOPSIS
#include <stdlib.h> int getsubopt(char **optionp, char * const *keylistp, char **valuep); The getsubopt() function parses suboption arguments in a flag argument. Such options often result from the use of getopt(3C). The getsubopt() argument optionp is a pointer to a pointer to the option argument string. The suboption arguments are separated by commas and each can consist of either a single token or a token-value pair separated by an equal sign. The keylistp argument is a pointer to a vector of strings. The end of the vector is identified by a null pointer. Each entry in the vector is one of the possible tokens that might be found in *optionp. Since commas delimit suboption arguments in optionp, they should not appear in any of the strings pointed to by keylistp. Similarly, because an equal sign separates a token from its value, the application should not include an equal sign in any of the strings pointed to by keylistp. The valuep argument is the address of a value string pointer. If a comma appears in optionp, it is interpreted as a suboption separator. After commas have been processed, if there are one or more equal signs in a suboption string, the first equal sign in any suboption string is interpreted as a separator between a token and a value. Sub- sequent equal signs in a suboption string are interpreted as part of the value. If the string at *optionp contains only one suboption argument (equivalently, no commas), getsubopt() updates *optionp to point to the null character at the end of the string. Otherwise, it isolates the suboption argument by replacing the comma separator with a null character and updates *optionp to point to the start of the next suboption argument. If the suboption argument has an associated value (equivalently, contains an equal sign), getsubopt() updates *valuep to point to the value's first character. Otherwise, it sets *valuep to a null pointer. The calling application can use this information to determine whether the presence or absence of a value for the suboption is an error. Additionally, when getsubopt() fails to match the suboption with a token in the keylistp array, the calling application should decide if this is an error or if the unrecognized option should be processed in another way. The getsubopt() function returns the index of the matched token string or -1 if no token strings were matched. No errors are defined. Example 1: Use getsubopt() to process options. The following example demonstrates the processing of options to the mount(1M) utility using getsubopt(). #include <stdlib.h> char *myopts[] = { #define READONLY 0 "ro", #define READWRITE 1 "rw", #define WRITESIZE 2 "wsize", #define READSIZE 3 "rsize", NULL}; main(argc, argv) int argc; char **argv; { int sc, c, errflag; char *options, *value; extern char *optarg; extern int optind; . . . while((c = getopt(argc, argv, "abf:o:")) != -1) { switch (c) { case 'a': /* process a option */ break; case 'b': /* process b option */ break; case 'f': ofile = optarg; break; case '?': errflag++; break; case 'o': options = optarg; while (*options != '') { switch(getsubopt(&options,myopts,&value)){ case READONLY : /* process ro option */ break; case READWRITE : /* process rw option */ break; case WRITESIZE : /* process wsize option */ if (value == NULL) { error_no_arg(); errflag++; } else write_size = atoi(value); break; case READSIZE : /* process rsize option */ if (value == NULL) { error_no_arg(); errflag++; } else read_size = atoi(value); break; default : /* process unknown token */ error_bad_token(value); errflag++; break; } } break; } } if (errflag) { /* print usage instructions etc. */ } for (; optind<argc; optind++) { /* process remaining arguments */ } . . . } Example 2: Parse suboptions. The following example uses the getsubopt() function to parse a value argument in the optarg external variable returned by a call to getopt(3C). #include <stdlib.h> ... char *tokens[] = {"HOME", "PATH", "LOGNAME", (char *) NULL }; char *value; int opt, index; while ((opt = getopt(argc, argv, "e:")) != -1) { switch(opt) { case 'e' : while ((index = getsubopt(&optarg, tokens, &value)) != -1) { switch(index) { ... } break; ... } } See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ mount(1M), getopt(3C), attributes(5), standards(5) 29 Sep 2005 getsubopt(3C)
All times are GMT -4. The time now is 03:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy