Writing fp-info-cache temp file take too long over networked FS (e.g. samba)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kicad (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
Application: Pcbnew
Version: 5.1.5-52549c5~
Libraries:
wxWidgets 3.0.4
libcurl/7.58.0 OpenSSL/1.1.1 zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3
Platform: Linux 4.15.0-20-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
wxWidgets: 3.0.4 (wchar_t,wx containers,
Boost: 1.65.1
OpenCASCADE Community Edition: 6.9.1
Curl: 7.58.0
Compiler: GCC 7.4.0 with C++ ABI 1011
Build settings:
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_
KICAD_SPICE=ON
When closing either Footprint Editor or pcbnew, fp-info-
Looking at the samba server logs, the fp-info-
[2019/12/07 23:18:11.740618, 3] ../source3/
smb2: fnum 2023785553, file plosaky/
[2019/12/07 23:18:11.741681, 3] ../source3/
smb2: fnum 2023785553, file plosaky/
[2019/12/07 23:18:11.742641, 3] ../source3/
smb2: fnum 2023785553, file plosaky/
[2019/12/07 23:18:11.744346, 3] ../source3/
smb2: fnum 2023785553, file plosaky/
[2019/12/07 23:18:11.745263, 3] ../source3/
smb2: fnum 2023785553, file plosaky/
[2019/12/07 23:18:11.746235, 3] ../source3/
smb2: fnum 2023785553, file plosaky/
[2019/12/07 23:18:11.747096, 3] ../source3/
smb2: fnum 2023785553, file plosaky/
In general, writing one fp-info-
[ /var/log/samba ]# cat log. | grep fp-info-cache0bIzQY | grep wrote | wc -l
75048
[ /var/log/samba ]# wc -l /mnt/data/
75048 /mnt/data/
..and take more than a minute:
[/var/log/samba ]# cat log. | grep fp-info-cache0bIzQY -B1 | head -2
[2019/12/07 23:16:56.293527, 2] ../source3/
peter opened file plosaky/
[ /var/log/samba ]# cat log. | grep fp-info-cache0bIzQY -B1 | tail -2
[2019/12/07 23:18:12.022399, 3] ../source3/
rename_
I have not find a way to fine tune the samba server/client to improve the write times. I believe there is not a way to do it, since the file is written line-by-line as separate write requests.
Is there a better way for kicad to write the fp-info-
Perhaps writing the fp-info-
Thanks,
Peter