maindavfs2 - Support: sr #108111, Is there a way to disable the...

 
 

sr #108111: Is there a way to disable the cache?

Submitter:  Cristian <internaut19>
Submitted:  Sat 18 Aug 2012 03:26:29 AM UTC
Votes: 50
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  _71007
Open/Closed:  Closed Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 03 Jun 2014 11:15:50 PM UTC, comment #4: 

Yes, our need is the same as expressed in sr #108588. The minute+ delay in accessing a large file is caused entirely by copying the file twice: once to the cache directory, and another time to the final location. If we eliminate the intermediary copy then we solve the delay problem entirely.

I understand that you must copy locally for read/write filesystems, but I fail to see any need for caching when it's a read-only mount.

Jo Rhett <jorhett>
Tue 03 Jun 2014 08:13:19 PM UTC, comment #3: 

I don't understand why you think caching is only for read/write and not for read-only requests. Whatever you want to access, it has to be downloaded from the server first. Having it already on the local hard disk can improve response time significantly. While whether the downloaded content is additionally stored on a local disk does not make much difference.

But it might help if I knew why you want to disable caching. What is the real problem?

Maybe it is the same as in sr #108588.

Cheers
Werner

- <_71007>
Mon 02 Jun 2014 10:09:38 PM UTC, comment #2: 

This requirement only exists for read/write filesystems. For read-only access to an application's data provided by Webdav, this isn't necessary and it slows down access significantly. Please consider an option to disable caching when a mount is read only.

Jo Rhett <jorhett>
Sun 19 Aug 2012 08:04:54 PM UTC, comment #1: 

No.

When you open a file davfs2 must store it locally until it is closed again. From the basic design of davfs2 there is no way around.

You can try to minimize the use of the cache by reducing the cache size or by setting 'delay_upload 0'. Both may slow down the file system significantly.

Commenting out options only means to use the default values.

Cheers
Werner

- <_71007>
Sat 18 Aug 2012 03:26:29 AM UTC, original submission:  

I searched for a way to disable the davfs cache but couldn't find one so thought that I ask my question here.

I tried to set the cache size to different values including 0 but no go. I also tried to comment out the cache options in the config file but still no go ...

If there is anything else that I can try, please let me know.

Cheers,
Cristian.

Cristian <internaut19>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jorhett (Posted a comment)
  • -email is unavailable- added by jorhett (Voted in favor of this item)
  • -email is unavailable- added by _71007 (Posted a comment)
  • -email is unavailable- added by internaut19 (Submitted the item)
  •  

    There are 50 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-06-03 _71007 StatusIn Progress Done
    2014-06-03 _71007 StatusDone In Progress
    2014-06-02 jorhett Carbon-Copy- Added jorhett
    2014-04-22 _71007 Open/ClosedOpen Closed
    2012-08-19 _71007 StatusNone Done
        Assigned toNone _71007

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code