{"action":"opened","issue":{"url":"https://api.github.com/repos/cozy-labs/cozy-desktop/issues/1216","repository_url":"https://api.github.com/repos/cozy-labs/cozy-desktop","labels_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/issues/1216/labels{/name}","comments_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/issues/1216/comments","events_url":"https://api.github.com/repos/cozy-labs/cozy-desktop/issues/1216/events","html_url":"https://github.com/cozy-labs/cozy-desktop/issues/1216","id":372088291,"node_id":"MDU6SXNzdWUzNzIwODgyOTE=","number":1216,"title":"Cozy Desktop eating all standby memory on Windows","user":{"login":"aleroyer","id":34323575,"node_id":"MDQ6VXNlcjM0MzIzNTc1","avatar_url":"https://avatars3.githubusercontent.com/u/34323575?v=4","gravatar_id":"","url":"https://api.github.com/users/aleroyer","html_url":"https://github.com/aleroyer","followers_url":"https://api.github.com/users/aleroyer/followers","following_url":"https://api.github.com/users/aleroyer/following{/other_user}","gists_url":"https://api.github.com/users/aleroyer/gists{/gist_id}","starred_url":"https://api.github.com/users/aleroyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleroyer/subscriptions","organizations_url":"https://api.github.com/users/aleroyer/orgs","repos_url":"https://api.github.com/users/aleroyer/repos","events_url":"https://api.github.com/users/aleroyer/events{/privacy}","received_events_url":"https://api.github.com/users/aleroyer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-19T19:32:48Z","updated_at":"2018-10-19T19:32:48Z","closed_at":null,"author_association":"NONE","body":"### Description\r\n\r\nWhen the desktop client is launched on Windows and you have a lot of big files, the client will access those files which cause Windows putting them in the standby memory (similar to file cache on Linux).\r\n\r\nThis is eating all my memory and affecting games performances or programs relaying a lot on memory.\r\n\r\nI was first expected the bug from Windows itself with SuperFetch or Search features but it appears it is not. I have deactivated such features and I can see the standby memory growing after launching Cozy Desktop.\r\n\r\nThe memory can be free thanks to RamMap but it will grow again if Cozy Desktop is restarted or access huge files. \r\n\r\nFor the moment closing Cozy Desktop and clearing the standby memory is the only fix I have to enjoy games without performances issues.\r\n\r\n### Steps to Reproduce\r\n\r\n1. Have some big files or a lot of files in your Cozy Drive like videos from your phone\r\n2. Open the `Resources Monitor` on the memory tab.\r\n3. Launch Cozy Desktop\r\n4. See the standby memory in the resource monitor growing as Cozy Desktop scans for its files.\r\n5. Open [RamMap](https://docs.microsoft.com/en-us/sysinternals/downloads/rammap) and go to `File Summary` tab. You can sort by size on standby memory and you will see files from your Cozy folder.\r\n\r\n### Expected behaviour\r\n\r\nDo not consume a lot of memory by opening files. Close file descriptors properly.\r\n\r\n### Actual behaviour\r\n\r\nIt seems like Cozy Desktop scans for files when starting. This is opening a lot of files in standby memory on Windows. Maybe file descriptors are not properly closed or the method used to scan files is not adapted for Windows.\r\n\r\n### Informations\r\n\r\n* **reproductible**: Always\r\n* **OS**: Windows\r\n* **version**: 3.9.0\r\n"}}
{"actor":{"display_login":"aleroyer"}}