[PR #2157] [MERGED] Update curl.cpp: reduce memory cache use when copy the big file from s3fs mount path #2360

Closed
opened 2026-03-04 02:05:08 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/2157
Author: @tanguofu
Created: 5/12/2023
Status: Merged
Merged: 5/27/2023
Merged by: @ggtakec

Base: masterHead: master


📝 Commits (1)

  • e7768eb Update curl.cpp: reduce memory cache use

📊 Changes

1 file changed (+6 additions, -1 deletions)

View changed files

📝 src/curl.cpp (+6 -1)

📄 Description

flush the file and clean the page cache when filepart download done

Relevant Issue (if applicable)

Details

add a fdatasync when curl download the filepart finish this to make memory cache of this file to flush to disk.

if not add fdatasync , when copy the large files this will take many active file cache .


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/s3fs-fuse/s3fs-fuse/pull/2157 **Author:** [@tanguofu](https://github.com/tanguofu) **Created:** 5/12/2023 **Status:** ✅ Merged **Merged:** 5/27/2023 **Merged by:** [@ggtakec](https://github.com/ggtakec) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`e7768eb`](https://github.com/s3fs-fuse/s3fs-fuse/commit/e7768ebfc22c78aa48fab97df69625c6e00d2080) Update curl.cpp: reduce memory cache use ### 📊 Changes **1 file changed** (+6 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/curl.cpp` (+6 -1) </details> ### 📄 Description flush the file and clean the page cache when filepart download done <!-- -------------------------------------------------------------------------- Please describe the purpose of the pull request(such as resolving the issue) and what the fix/update is. --------------------------------------------------------------------------- --> ### Relevant Issue (if applicable) <!-- If there are Issues related to this PullRequest, please list it. --> ### Details <!-- Please describe the details of PullRequest. --> add a fdatasync when curl download the filepart finish this to make memory cache of this file to flush to disk. if not add fdatasync , when copy the large files this will take many active file cache . --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 02:05:08 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#2360
No description provided.