문제

I have a general "feeling" that applications open faster on Windows than on Linux. I know this is too vague/non-scientific but if I were to compare load time of an application e.g. VLC on Windows and Linux how would I go about ? Also, I would like to study the differences in loading mechanism used by windows and Linux for binaries so any reference would very much appreciated.

도움이 되었습니까?

해결책

The Linux loader can give you lots of information about the binding process.

LD_DEBUG=help ls

See the ld.so(8) man page for more details.

다른 팁

To really measure this you'd need to be able to flush the file cache on each OS before measuring.

One thing that Windows does is immediately after bootup it begins loading a list of frequently used DLLs and applications into file cache. This is called SuperFetch and it works pretty well.

Linux distros sometimes have a similar list that is preloaded into file cache by a program called readahead. The problem with the Linux distros is that this list is fixed at install time and isn't automatically updated, so it usually only includes programs such as the default user desktop, web browser, email application, etc.

To flush the file cache on Linux, do the following command as root:

echo 3 > /proc/sys/vm/drop_caches

To flush the file cache on Windows? I don't know, I will need to look.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top