4 ms·
"On a NFS mounted on my PC your LS_COLORS tweak actually degrades the performance" Run "strace -o logfile ls --color=always" and diff the two logfiles.
by mrb 8y ago
"On a NFS mounted on my PC your LS_COLORS tweak actually degrades the performance"
Run "strace -o logfile ls --color=always" and diff the two logfiles.
- arendtio 8y agoWell, this looks rather strange. As expected, settings the variable causes large changes as it removes a lot of lstat calls and also removes the color codes from the writes. So there seems to be no obvious explanation, why it becomes slower when doing less... # du -sh logfile_nfs* 1.7M logfile_nfs 668K logfile_nfs_exported However, the strace -c output looks kinda different: Without modifying the variable: https://bin.disroot.org/?149fa91c08b27312#0w9O6BAWNEEC4SUXEbtark/TMSDm9gT+jT0OK5ME8fE= https://bin.disroot.org/?149fa91c08b27312#0w9O6BAWNEEC4SUXEb... With setting the variable: https://bin.disroot.org/?149fa91c08b27312#0w9O6BAWNEEC4SUXEbtark/TMSDm9gT+jT0OK5ME8fE= https://bin.disroot.org/?149fa91c08b27312#0w9O6BAWNEEC4SUXEb...
- mrb 8y agoYou pasted the same link for both cases. Can't tell what's going on.
- arendtio 8y agoOh sorry, my fault. The second link should be https://bin.disroot.org/?56f3dcb618240df0#x3StRGZZgSzM0UJ0BK5V5MajQ8VradUoBlaZS0Da7i0= https://bin.disroot.org/?56f3dcb618240df0#x3StRGZZgSzM0UJ0BK...
- deleted 8y ago[deleted]
- deleted 8y ago[deleted]