bmi is the layer that multiplexes the socket connections to servers.
src/io/bmi/bmi_tcp will have the sources for that.
Since BMI is part of libpvfs2 which gets linked to each application
that invokes the pvfs system interfaces, effectively each application
will get its own set of sockets and consequently have to bind to
different client-side ports.
In the kernel case, all system calls have to be funnelled through
pvfs2-client-core which is a consumer of the pvfs system interfaces.
Since client-core is the only way to service fopen/posix style calls,
all communication with servers go through the same sockets to the
appropriate servers (which is kept open by client-core's bmi lib)
HTH,
Murali

On 4/25/07, Dharani Sankar Vijayakumar <[EMAIL PROTECTED]> wrote:
Is there any reason why this has been done?

can anyone suggest me which .C files (source code) i can look in so that i
will be able to appreciate the difference.

Regards,
Dharani



On Tue, 24 Apr 2007, Murali Vilayannur wrote:

> Dharani,
> It depends on whether the application is linked to the pvfs2 library
> or if it makes use of the vfs/posix api/fopen.
> In the case of the former, applications have to make use of ephemeral
> ports on the client-machine. Thus they will end up using different
> ports
>
> In the case of the latter, it is the job of pvfs2-client-core daemon
> to initiate connections with the servers and maintain the socket file
> descriptors.
> Thus, in this case, pvfs2-client can make do with just 1 socket to a
> single server and thus use the same client-side port. The app never
> talks directly to the servers. All communication is funneled through
> the device to client-core.
> Hope this helps,
> Murali
>
> On 4/23/07, Dharani Sankar Vijayakumar <[EMAIL PROTECTED]> wrote:
>> Suppose there are two applications running in a pvfs client node.
>> Say one client does an "fopen" thus establishing a tcp/ip connection with
>> the metadata server.
>>
>> Similarly the other application in the same client opens a connection
>> with the meta data server. Does the second application use a different
>> port number at the client than the first application? or the same port
>> number is used by both applications?
>>
>>
>>
>> Regards,
>> Dharani
>>
>>
>> _______________________________________________
>> Pvfs2-developers mailing list
>> Pvfs2-developers@beowulf-underground.org
>> http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers
>>
>

_______________________________________________
Pvfs2-developers mailing list
Pvfs2-developers@beowulf-underground.org
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers

Reply via email to