New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Huge RAM usage when loading ROM from 7zip archive #9802
Comments
Two notes on this...
|
One large 7z archive is theoretically fine, but the issue here isn't the 7z archive, it's that the archive in question is a solid archive. Essentially the whole thing has to be decompressed to get one file from it. You can make 7z in non-solid mode, but it'll be equivalent to having every file inside as its own 7z archive in terms of space consumed. Zip doesn't support solid archives, so it doesn't suffer the same issue or have the same space saving capability. |
@RobLoach @Sanaki The exact same ROM is being extracted from the same 7zip solid archive in 3 seconds with minimal RAM usage using the 7zip application. |
This doesn't seem to be true in the current implementation. I have a 4.3 Gb archive and loading any one game seems to required decompressing the entire archive each time I try to open it, without any sort of caching. As far as I could tell, |
@nrdxp I don't believe this to be true. Please see my previous post here: #9802 (comment) |
maybe the way 7zip unpacks a single file is just inefficient, but I just tested it yesterday. If I open a game from an archive containing my entire collection, it takes more than a minute for the game to start. If I close and immediately reload the same game it takes another minute to open, but if I load the same game from an archive containing just that one game it starts almost instantly, this was with 1.12.0 |
@nrdxp That is in contradiction with my findings. 7zip extracts a 16MB rom from a 6GB solid archive in 5 seconds. That is very efficient. |
what command do you use to extract a single file from a 7z archive (if you recall). I couln't seem to figure it out, or it took long enough that I canceled the operation. |
@nrdxp At the time I was using the Windows GUI app and just dragging the file out of the archive. |
Description
I have a big 7zip archive (6GB) with ROMs and when I try to extract a single one through the 7zip application it extracts in 3-5 seconds, but when I open the ROM through RetroArch to play it, it takes about 30 seconds and RetroArch takes up 8GB of RAM until I close it. This RAM is never released.
This happens with multiple cores and multiple archives tested.
This is happening with small 16MB ROMs on an SSD.
Expected behavior
File gets extracted in the same 3-5 seconds as 7zip does and without taking 8GB of RAM.
Actual behavior
Steps to reproduce the bug
Version/Commit
Environment information
The text was updated successfully, but these errors were encountered: