[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jcifs
Subject:    Re: [jcifs] Peformance questions
From:       Philip Warner <pjw () rhyme ! com ! au>
Date:       2013-02-28 5:59:24
Message-ID: 512EF23C.8050608 () rhyme ! com ! au
[Download RAW message or body]

On 28/02/2013 3:45 PM, Michael B Allen wrote:
> JCIFS should absolutely not be querying DFS during writes and I would be surprised \
> if it actually is. That is something that would require a proper capture to verify.

You are probably right about this, but based on 1.3.14 sources:

    SmbFileOutputStream.writeDirect(...) calls SmbFile.send(...)
    SmbFile.send(...) calls resolveDfs(...)
    resolveDfs(...) calls Dfs.resolve(...)

Dfs.resolve(...) looks like it does OS-level network stuff unless DFS is disabled, or \
unless it has succeeded in a call to Dfs.resolve(...) recently.

My suspicion is that because DFS is enabled, and because DFS is not present, it is \
retrying for every block it sends. Hence the 400% slowdown when DFS is enabled.

Or it could just the the OS-level calls are really slow.


 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic