Skip to content

SMB install timeouts and configurable library batch size #230

Open

Description

@z3rounit

Hi ShadowMount+ team, thanks for your work on this. I have two questions from testing v1.7beta11 on PS5 firmware 13.20 with a QNAP NAS on a wired gigabit network.

  • SMB transfers: Several install attempts from the NAS stopped with status 60 (“Operation timed out”). Is this a known issue, and is there a workaround or a fix in progress? I'm happy to run another test or share a redacted log excerpt if it would help.
  • Library browsing: My 132-game library loads in four batches of 32 plus a final batch of four. That adds a lot of scrolling and repeated loading as the library grows. Is there a setting for a larger batch size, or would a configurable limit be possible?

Thanks for any pointers!
— z3rounit

Activity

  1. strongt1me commented on Nov 23, 2026

    @strongt1me

    Hi @z3rounit, I looked at the 1.7beta12 source for both questions (you are on beta11 and I didn't compare the two). I'm not a maintainer, so this is what I can see in the code, not a fix.

    SMB timeouts: There are two 5 second limits in the SMB code. When ShadowMount+ connects to a share, it sets a 5 second timeout on the SMB context (smb2_set_timeout(ctx, 5) in src/sm_smb.c). On top of that, its own SMB read/write loop in src/sm_vfs.c gives up with ETIMEDOUT if no data arrives for 5 seconds. The deadline is reset after every response, so it triggers when a transfer stalls, not just when it is slow. It logs [SMB] I/O stopped: status=60 ..., and 60 is the status you saw (ETIMEDOUT on FreeBSD-based systems like the PS5). I found no setting for any of these limits (not in the config, the README or docs/api.md). A NAS that pauses for more than 5 seconds, for example while its disks spin up, would plausibly hit this. I couldn't find an existing issue or PR about SMB timeouts, so as far as I can see there is no fix in progress. As an untested workaround, you could copy the game from your PC to a USB drive or to the console first and install from there. If you can, please share the debug.log lines around a failed install (the [SMB] I/O stopped line and, for PKGs, [PKG] install failure detail), and say whether it is a folder, an image or a PKG, and whether it stops right at the start or partway through.

    Batches of 32: I think you mean the file list of the NAS in the Install page. There, each page has a fixed 32 entries for SMB shares (256 for local storage), with "Back" and "Continue" buttons (src/sm_api_service.c, docs/api.md). 132 entries is exactly 4 x 32 + 4 if they are all in one folder. I found no setting to change it. The library grid itself loads the whole game list in one request (refreshLibrary calls /games without a limit) and has no batches that I could find, so if you meant that screen, please tell me what you see.

  2. z3rounit commented on Nov 23, 2026

    @z3rounit
    Author

    @strongt1me, thank you immensely for taking the time to dig into both of these issues and get back to me. I’d been hitting the same wall through repeated tests, and you gave me something concrete to work with. I’m genuinely grateful for your time and attention.

    SMB timeouts

    I ran these tests on ShadowMount+ 1.7beta11, PS5 firmware 13.20, from a QNAP NAS over wired gigabit Ethernet to the PS5’s internal SSD. I watched the original runs with the console awake. The transfer UI showed about 112 MB/s while copying, and retries started from the beginning.

    Job Source Result
    1 Single .exfat image, roughly 180 GB Timed out at 68,761,419,776 bytes after 591.122 s
    2 Same image, retry Timed out at 68,761,419,776 bytes after 590.861 s
    3 Transfer canceled during testing Stopped at 51,770,294,272 bytes after 446.732 s, status 85
    4 God of War III Remastered PKG (CUSA01715) Copied 41,723,166,720 bytes in 357.895 s, installed and launched
    5 Large .exfat image, repeat test Timed out at 68,761,419,776 bytes after 590.769 s
    6 Devil May Cry 5 Special Edition .exfat (PPSA01443) Copied 68,240,277,504 bytes in 583.206 s, installed and launched
    7 Hitman 3 / World of Assassination extracted folder (PPSA16388) Timed out after 69,642,088,894 bytes total. The source was about 114.4 GiB across 47 files, with a largest file of 28.8 GiB.

    All four failures happened mid-transfer and logged [SMB] I/O stopped: status=60 detail= followed by reason=Operation timed out. On Hitman 3, 29 file copies completed. The final file copy moved 109,051,904 bytes before failing and logged 5,468 ms of wait time out of 5,980 ms elapsed. The PKG test completed with status 0.

    If you think this could be specific to beta11, I’m happy to move to beta12 and rerun the same large .exfat image and Hitman 3 folder over SMB. Would that be a useful next test? I can share the logs and exact byte counts so we can see whether either failure point changes. If a longer or configurable SMB timeout would help isolate the cause, I’d be happy to test that too.

    32-entry SMB pages

    Yes, this is on Install when browsing the NAS over SMB. With 132 entries, I get four full pages and a final page of four. The PS5’s internal SSD only holds a fraction of my collection, so Install is where I do most of my browsing to decide what to play next. A configurable page size would make that everyday workflow much easier.

    Is there already a way to show the full SMB catalog in the Library grid without copying every game to the console first? Even a browse-only view with an Install action for NAS-only titles would do what I’m after.

    Debug evidence

    Console debug-log excerpts for all seven jobs
    ShadowMount+ issue #230 | SMB install debug-log excerpts
    
    Selected, verbatim lines from the console debug log. Bracketed times are as shown on the console. Sections follow the run order. The final Hitman 3 copy pipeline entry is for one file. The sum of all 30 pipeline byte counts for that job is 69,642,088,894 bytes.
    
    Environment
    [21:22:57] ShadowMount+ v1.7beta11 exFAT/UFS/PFS/LVD/MD. FW: 13.20. Build: 2026-10-29T21:22:24Z. Thx to VoidWhisper/Gezine/Earthonion/EchoStretch/Drakmor
    
    Jobs 1 and 2 | repeated single-image SMB failures
    [21:39:44]   [SMB] I/O stopped: status=60 detail=
    [21:39:45]   [SMB] copy pipeline: bytes=68761419776 elapsed_ms=591122 data_ms=589954 read_ms=589685 write_ms=304120 wait_ms=285760 open_ms=91 flush_ms=0 close_ms=1077 deferred_ms=0 status=60
    [21:39:45]   [API] async game source install stopped: job=1 title= status=60 reason=Operation timed out
    [21:49:54]   [SMB] I/O stopped: status=60 detail=
    [21:49:55]   [SMB] copy pipeline: bytes=68761419776 elapsed_ms=590861 data_ms=589619 read_ms=589512 write_ms=300290 wait_ms=289257 open_ms=90 flush_ms=0 close_ms=1150 deferred_ms=0 status=60
    [21:49:55]   [API] async game source install stopped: job=2 title= status=60 reason=Operation timed out
    
    Job 3 | canceled transfer
    [21:58:28]   [SMB] copy pipeline: bytes=51770294272 elapsed_ms=446732 data_ms=445832 read_ms=445711 write_ms=227410 wait_ms=218354 open_ms=91 flush_ms=0 close_ms=808 deferred_ms=0 status=85
    [21:58:28]   [API] async game source install stopped: job=3 title= status=85 reason=Operation canceled
    
    Job 4 | God of War III Remastered PKG installed and launched
    [21:58:35]   [PKG] native task accepted: job=4 title=CUSA01715 kind=1 type=0 platform=1 content_id=EP9000-CUSA01715_00-0000GODOFWAR3PS4
    [21:59:04]   [PKG] HTTP transfer: source=smb bytes=3396796416 elapsed_ms=30017 read_ms=54403 send_ms=9510 wait_ms=47306 final=0
    [21:59:34]   [PKG] HTTP transfer: source=smb bytes=6924206080 elapsed_ms=60043 read_ms=110728 send_ms=19873 wait_ms=95920 final=0
    [22:00:04]   [PKG] HTTP transfer: source=smb bytes=10451615744 elapsed_ms=90066 read_ms=167045 send_ms=30225 wait_ms=144556 final=0
    [22:00:34]   [PKG] HTTP transfer: source=smb bytes=13979025408 elapsed_ms=120088 read_ms=223385 send_ms=40579 wait_ms=193191 final=0
    [22:01:04]   [PKG] HTTP transfer: source=smb bytes=17502240768 elapsed_ms=150111 read_ms=279651 send_ms=51029 wait_ms=241713 final=0
    [22:01:34]   [PKG] HTTP transfer: source=smb bytes=21021261824 elapsed_ms=180113 read_ms=335947 send_ms=61407 wait_ms=290284 final=0
    [22:02:04]   [PKG] HTTP transfer: source=smb bytes=24552865792 elapsed_ms=210139 read_ms=392491 send_ms=71182 wait_ms=339542 final=0
    [22:02:34]   [PKG] HTTP transfer: source=smb bytes=28080275456 elapsed_ms=240159 read_ms=448848 send_ms=81394 wait_ms=388315 final=0
    [22:03:04]   [PKG] HTTP transfer: source=smb bytes=31607685120 elapsed_ms=270187 read_ms=505197 send_ms=91746 wait_ms=436936 final=0
    [22:03:34]   [PKG] HTTP transfer: source=smb bytes=35135094784 elapsed_ms=300214 read_ms=561497 send_ms=102187 wait_ms=485476 final=0
    [22:04:04]   [PKG] HTTP transfer: source=smb bytes=38662504448 elapsed_ms=330242 read_ms=617790 send_ms=112497 wait_ms=534138 final=0
    [22:04:32]   [PKG] HTTP transfer: source=smb bytes=41723166720 elapsed_ms=357895 read_ms=666709 send_ms=121331 wait_ms=576448 final=1
    [22:04:32]   [PKG] install finished: job=4 title=CUSA01715 status=0 native=0x00000000
    [22:05:11]   [GAME] started: CUSA01715 pid=102 app_id=0x00000018
    
    Job 5 | repeat single-image SMB failure
    [22:53:02]   [SMB] I/O stopped: status=60 detail=
    [22:53:03]   [SMB] copy pipeline: bytes=68761419776 elapsed_ms=590769 data_ms=589608 read_ms=589047 write_ms=333531 wait_ms=256003 open_ms=100 flush_ms=0 close_ms=1061 deferred_ms=0 status=60
    [22:53:03]   [API] async game source install stopped: job=5 title= status=60 reason=Operation timed out
    
    Job 6 | Devil May Cry 5 Special Edition image installed and launched
    [23:19:51]   [SMB] copy pipeline: bytes=68240277504 elapsed_ms=583206 data_ms=583104 read_ms=582334 write_ms=331074 wait_ms=251962 open_ms=92 flush_ms=3 close_ms=0 deferred_ms=0 status=0
    [23:19:51]   [MANUAL] API added source: /data/homebrew/PPSA01443.exfat
    [23:19:51]   [API] async game source install complete: job=6 title= status=0 reason=complete
    [23:20:03]   [ACTION] Installing: Devil May Cry 5 Special Edition (PPSA01443)
    [23:20:09] NOTIFY: installed game PPSA01443
    [23:21:15]   [GAME] started: PPSA01443 pid=150 app_id=0x00002018
    
    Job 7 | Hitman 3 extracted folder SMB timeout
    [00:22:42]   [SMB] copy pipeline: bytes=46212720 elapsed_ms=432 data_ms=427 read_ms=412 write_ms=189 wait_ms=237 open_ms=2 flush_ms=0 close_ms=0 deferred_ms=0 status=0
    [00:23:00]   [SMB] copy pipeline: bytes=1857272716 elapsed_ms=15909 data_ms=15904 read_ms=15888 write_ms=8171 wait_ms=7730 open_ms=2 flush_ms=0 close_ms=0 deferred_ms=0 status=0
    [00:23:48]   [SMB] copy pipeline: bytes=5630265918 elapsed_ms=48105 data_ms=48096 read_ms=48061 write_ms=24451 wait_ms=23639 open_ms=6 flush_ms=0 close_ms=0 deferred_ms=0 status=0
    [00:24:01]   [SMB] copy pipeline: bytes=1531477918 elapsed_ms=13120 data_ms=13105 read_ms=13083 write_ms=6685 wait_ms=6418 open_ms=7 flush_ms=3 close_ms=0 deferred_ms=0 status=0
    [00:24:21]   [SMB] copy pipeline: bytes=2348482964 elapsed_ms=20153 data_ms=20144 read_ms=20119 write_ms=10217 wait_ms=9924 open_ms=6 flush_ms=0 close_ms=0 deferred_ms=0 status=0
    [00:24:43]   [SMB] copy pipeline: bytes=2482905962 elapsed_ms=21663 data_ms=21647 read_ms=21625 write_ms=10659 wait_ms=10985 open_ms=6 flush_ms=0 close_ms=7 deferred_ms=0 status=0
    [00:25:06]   [SMB] copy pipeline: bytes=2434398901 elapsed_ms=22590 data_ms=22581 read_ms=22568 write_ms=10560 wait_ms=12017 open_ms=6 flush_ms=0 close_ms=1 deferred_ms=0 status=0
    [00:25:28]   [SMB] copy pipeline: bytes=2539408007 elapsed_ms=22393 data_ms=22384 read_ms=22362 write_ms=11055 wait_ms=11326 open_ms=6 flush_ms=0 close_ms=0 deferred_ms=0 status=0
    [00:25:49]   [SMB] copy pipeline: bytes=2262738137 elapsed_ms=20399 data_ms=20390 read_ms=20385 write_ms=9854 wait_ms=10533 open_ms=6 flush_ms=0 close_ms=0 deferred_ms=0 status=0
    [00:26:26]   [SMB] copy pipeline: bytes=4083645915 elapsed_ms=37463 data_ms=37454 read_ms=37435 write_ms=17637 wait_ms=19812 open_ms=6 flush_ms=0 close_ms=0 deferred_ms=0 status=0
    [00:26:51]   [SMB] copy pipeline: bytes=2950863010 elapsed_ms=25242 data_ms=25232 read_ms=25213 write_ms=12766 wait_ms=12462 open_ms=7 flush_ms=0 close_ms=0 deferred_ms=0 status=0
    [00:27:31]   [SMB] copy pipeline: bytes=4703626788 elapsed_ms=40193 data_ms=40184 read_ms=40167 write_ms=20425 wait_ms=19754 open_ms=6 flush_ms=0 close_ms=0 deferred_ms=0 status=0
    [00:28:00]   [SMB] copy pipeline: bytes=3331805551 elapsed_ms=28477 data_ms=28467 read_ms=28449 write_ms=14429 wait_ms=14034 open_ms=7 flush_ms=0 close_ms=0 deferred_ms=0 status=0
    [00:28:29]   [SMB] copy pipeline: bytes=3439820765 elapsed_ms=29436 data_ms=29426 read_ms=29399 write_ms=14813 wait_ms=14610 open_ms=6 flush_ms=0 close_ms=0 deferred_ms=0 status=0
    [00:28:48]   [SMB] copy pipeline: bytes=2225066545 elapsed_ms=19046 data_ms=19037 read_ms=19017 write_ms=9522 wait_ms=9512 open_ms=6 flush_ms=0 close_ms=0 deferred_ms=0 status=0
    [00:29:14]   [SMB] copy pipeline: bytes=2975583145 elapsed_ms=25583 data_ms=25574 read_ms=25553 write_ms=12797 wait_ms=12773 open_ms=7 flush_ms=0 close_ms=0 deferred_ms=0 status=0
    [00:29:34]   [SMB] copy pipeline: bytes=2282772549 elapsed_ms=19542 data_ms=19533 read_ms=19516 write_ms=9868 wait_ms=9662 open_ms=6 flush_ms=0 close_ms=0 deferred_ms=0 status=0
    [00:29:43]   [SMB] copy pipeline: bytes=1061855160 elapsed_ms=9139 data_ms=9130 read_ms=9110 write_ms=4535 wait_ms=4594 open_ms=6 flush_ms=0 close_ms=0 deferred_ms=0 status=0
    [00:30:06]   [SMB] copy pipeline: bytes=2767336336 elapsed_ms=23677 data_ms=23668 read_ms=23640 write_ms=11942 wait_ms=11722 open_ms=7 flush_ms=0 close_ms=0 deferred_ms=0 status=0
    [00:30:39]   [SMB] copy pipeline: bytes=3835870477 elapsed_ms=32813 data_ms=32804 read_ms=32750 write_ms=16629 wait_ms=16171 open_ms=6 flush_ms=0 close_ms=0 deferred_ms=0 status=0
    [00:31:01]   [SMB] copy pipeline: bytes=2573434639 elapsed_ms=21998 data_ms=21989 read_ms=21973 write_ms=11053 wait_ms=10932 open_ms=6 flush_ms=0 close_ms=0 deferred_ms=0 status=0
    [00:31:27]   [SMB] copy pipeline: bytes=2969259339 elapsed_ms=25410 data_ms=25401 read_ms=25374 write_ms=12846 wait_ms=12552 open_ms=6 flush_ms=0 close_ms=0 deferred_ms=0 status=0
    [00:31:44]   [SMB] copy pipeline: bytes=1991489879 elapsed_ms=17081 data_ms=17072 read_ms=17049 write_ms=8546 wait_ms=8523 open_ms=7 flush_ms=0 close_ms=0 deferred_ms=0 status=0
    [00:32:02]   [SMB] copy pipeline: bytes=2091275788 elapsed_ms=17883 data_ms=17873 read_ms=17855 write_ms=9042 wait_ms=8828 open_ms=6 flush_ms=0 close_ms=0 deferred_ms=0 status=0
    [00:32:06]   [SMB] copy pipeline: bytes=491284362 elapsed_ms=4261 data_ms=4247 read_ms=4217 write_ms=2185 wait_ms=2062 open_ms=6 flush_ms=3 close_ms=0 deferred_ms=0 status=0
    [00:32:12]   [SMB] copy pipeline: bytes=675236630 elapsed_ms=5831 data_ms=5816 read_ms=5790 write_ms=2985 wait_ms=2829 open_ms=12 flush_ms=0 close_ms=0 deferred_ms=0 status=0
    [00:32:22]   [SMB] copy pipeline: bytes=1263165345 elapsed_ms=10873 data_ms=10862 read_ms=10839 write_ms=5493 wait_ms=5367 open_ms=8 flush_ms=0 close_ms=0 deferred_ms=0 status=0
    [00:32:32]   [SMB] copy pipeline: bytes=1054223873 elapsed_ms=9077 data_ms=9068 read_ms=9056 write_ms=4511 wait_ms=4555 open_ms=6 flush_ms=0 close_ms=0 deferred_ms=0 status=0
    [00:32:46]   [SMB] copy pipeline: bytes=1632257651 elapsed_ms=13991 data_ms=13982 read_ms=13963 write_ms=7050 wait_ms=6930 open_ms=6 flush_ms=0 close_ms=0 deferred_ms=0 status=0
    [00:32:52]   [SMB] I/O stopped: status=60 detail=
    [00:32:52]   [SMB] copy pipeline: bytes=109051904 elapsed_ms=5980 data_ms=5961 read_ms=5961 write_ms=493 wait_ms=5468 open_ms=6 flush_ms=0 close_ms=12 deferred_ms=0 status=60
    [00:32:53]   [API] async game source install stopped: job=7 title=PPSA16388 status=60 reason=Operation timed out
    
    Console photos of the three repeat timeouts

    First two SMB timeouts at the identical byte count

    Third SMB timeout at the identical byte count

  3. strongt1me commented on Nov 23, 2026

    @strongt1me

    Hi @z3rounit, thanks for the detailed logs. I compared them with the 1.7beta12 source. I'm not a maintainer, so this is what the logs and the code show, not a fix.

    What the stop looks like: [SMB] I/O stopped: status=60 is logged by the SMB read/write loop in src/sm_vfs.c. It gives up when no SMB reply has completed for 5 seconds (the timer restarts after every reply). Your last Hitman 3 line fits that: elapsed_ms=5980, read_ms=5961, wait_ms=5468 (wait_ms is the time the copy loop waited for the reader). So the transfer did not get slow, the reader got no reply for about 5 seconds. The log can't show whether the NAS, the network or the console is behind that.

    A pattern, maybe a coincidence: 64 GiB is 68,719,476,736 bytes. Jobs 1, 2 and 5 all stopped at 68,761,419,776 bytes (64 GiB + 40 MiB). That is exactly the same count in all three runs (the counter advances in 4 MiB steps), although the times differ by a few hundred ms. The Hitman 3 job stopped after at least 64.9 GiB in total (69,642,088,894 bytes in your pipeline lines; files under 32 MiB aren't logged), but only about 104 MiB into the file it was copying, so there it isn't a position in one file. The jobs that finished were below 64 GiB: DMC5 with 68,240,277,504 bytes (63.55 GiB) and the PKG with 41.7 GB (38.9 GiB, and it goes through a different code path). An identical count points to something tied to the amount or position, not to a random stall, but I can't say what.

    Ways to narrow it down (optional):

    1. Read the same .exfat from a PC on the same network (a normal copy is fine) and see whether it also stalls at about 64 GiB. If it completes, that doesn't fully clear the NAS, because a PC sends different requests.
    2. Look at the NAS's system or connection log around the failure times (console clock 21:39:44, 21:49:54, 22:53:02 and 00:32:52) for resets or disk errors.
    3. In Settings → SMB → Check connection the web UI shows a message like "Connection verified. Protocol: SMB 3.1.1." Please post the protocol; on SMB 2.0.2 the requests are limited to 64 KiB, otherwise the NAS's maximum read size applies (up to 1 MiB per read request).
    4. Your idea to rerun on beta12 is fine. As far as I can see, the SMB read and copy code (src/sm_vfs.c, src/sm_storage.c) is unchanged between beta11 and beta12, and only the place where SMB connections are stored changed, so I wouldn't expect a different result, but it rules out beta11 itself. The README says beta12 converts the old config files on the first start (originals go to /data/shadowmount/config-v1-backup/) and that going back to an older build needs a manual restore, so please back up /data/shadowmount first.

    Timeout: I found no setting for the 5 second limits (the loop's own deadline and libsmb2's timeout). A longer one would only help if the NAS answers after a longer pause, which the logs can't show because the connection is dropped at 5 seconds, and it needs a code change, so that is up to the maintainer.

    NAS titles in the Library: As far as I can tell this isn't possible. The README says background scanning and mounting of shares is not supported and that shares are only contacted for explicit browsing, checks and transfers, and docs/api.md says no SMB path is added to the scan roots or manual.lst. So a title that exists only on the NAS has no Library entry, and Install is the only place that lists it. A browse-only NAS view with an Install action would be a new feature. I found no open issue for it (#168 asks for mounting games directly over the network, which is related but not the same), so a separate feature request may be easier for the maintainer to pick up. The 32 entries per SMB page are fixed in the code and documented in docs/api.md, and I found no setting for them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions