In a samba share we have a directory with lots of files – binaries and resources to run our ERP application (around 20K entries).
The application is taking too long to load. The found reason is that the application tries to load several files in a trial/error fashion, looking for extensions in a particular order (e.g:
file.int). Many of these files are not required and doesn’t even exist.
Every “not found” hit take ~0.2 seconds. And there are lots of these events.
The thing is that apparently samba is not caching this result.
If I run this code (in a Windows Command Prompt) in the samba share, it takes considerable time, whereas in a native Windows share it is instantaneous.
for /L %i in (1,1,50) do @dir \serversharenot_existing.txt >nul
Anything that can be done?
- CentOS Linux release 7.6.1810 (Core)
- Samba version 4.8.3
- Application Runtime: Microfocus NetExpress (Cobol) v3.1