Skip to contentSkip to conversation

query about clnt_create

DISCUSSION mehta kiran 2 participants 4 messages Feb 21, 2006 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

I noticed that clnt_create takes 3.5 min for tcp and 1 min for udp protocol by default
(when taget system in UNREACHABLE). Anyway to modify default timeout ? I could see that there are functions like clnt_create_timed on solaris 5.8/5.9 but not on linux.

thanks,
kiran

--- Trond Myklebust <[email protected]>

Quoted 12 lines · wrote:
Quoted 5 lines · mehta kiran

Hi Trond,
=20
May be i am confused.
But, is this assumption ok :
that clnt_create/clnt_call call from a client

system

Quoted 4 lines

will not fail due to any kind of security
settings(kerberos,firewall) on the nfs server
( PS: client system can mount exported fs from
nfs server) ?

Quoted 15 lines

=20
Of course clnt_call can fail due to security settings on the server:
they wouldn't be much use for security purposes if they didn't stop an
actual RPC call. :-)
=20
clnt_create might succeed, though, since it doesn't actually try to talk
to the server.
=20
Cheers,
Trond
=20
=20

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around=20
http://mail.yahoo.com=20

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les
for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat=3D=
121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#2 lore raw
Quoted 6 lines · mehta kiran

I noticed that clnt_create takes 3.5 min for tcp and 1 min for udp protocol by default
(when taget system in UNREACHABLE). Anyway to modify default timeout ? I could see that there are functions like clnt_create_timed on solaris 5.8/5.9 but not on linux.

'man 3 rpc' and look for the clnt_control() function

Cheers
Trond

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#3 lore raw

Hi Trond,
perhaps i was not clear.
I am talking about timeout for clnt_create and not about clnt_call which already has client handle in place. clnt_control will act on=20 client handle and i am searching for something which

will create client handle within specified timeout=20 if possible.

thanks,
kiran

--- Trond Myklebust <[email protected]>

Quoted 9 lines · wrote:
Quoted 3 lines · mehta kiran

I noticed that clnt_create takes 3.5 min for tcp and 1 min for udp protocol by default (when taget system in UNREACHABLE). Anyway to

modify

Quoted 2 lines

default timeout ? I could see that there are functions like clnt_create_timed on solaris

5.8/5.9

Quoted 8 lines
Quoted 1 line

but not on linux.

=20
'man 3 rpc' and look for the clnt_control() function =20
Cheers
Trond
=20
=20

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around=20
http://mail.yahoo.com=20

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les
for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat=3D=
121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#4 lore raw
Quoted 9 lines · mehta kiran

Hi Trond,
perhaps i was not clear.
I am talking about timeout for clnt_create and not about clnt_call which already has client handle in place. clnt_control will act on client handle and i am searching for something which

will create client handle within specified timeout if possible.

AFAICS clnt_create() will only do RPC calls if you fail to specify the port number to connect to, in which case it needs to call pmap_getport.

The portmapper timeout values appear to be hardcoded into the glibc rpc code, but writing your own client for PMAP_GETPORT should be trivial.

Cheers
Trond

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs