Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to improve the startup time of an application in Linux

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to improve the startup time of applications in Linux. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Using Preload to improve application startup time in Linux

Preload can be found on AUR. Therefore, you can use the AUR assistant to install it on any Arch-based system, such as Antergos, Manjaro Linux.

Use Pacaur:

$pacaur-S preload

Use Packer:

$packer-S preload

Use Trizen:

$trizen-S preload

Use Yay:

$yay-S preload

Use Yaourt:

$yaourt-S preload

On Debian, Ubuntu, Linux Mint, Preload can be found in the default repository. Therefore, you can use the APT package manager to install it as below.

$sudo apt-get install preload

After Preload installation is complete, restart your system. From now on, Preload will monitor frequently used applications and add their binaries and libraries to memory to make it start faster. For example, if you use Firefox, Chrome, and LibreOffice,Preload frequently, you will add these binaries and libraries to memory, so these applications will start faster. And even better, it doesn't need to be configured. It is ready to use out of the box. However, if you want to fine-tune it, you can do so by editing the default configuration file / etc/preload.conf.

Preload is not necessarily for everyone!

Here are some disadvantages of Preload, which are not helpful to everyone, as discussed in this follow-up post.

Hongmeng official Strategic Cooperation to build HarmonyOS Technology Community

I am using a modern system with 8GB memory. Therefore, my system is generally very fast. I only open memory-eating applications (such as Firefox, Chrome, VirtualBox, Gimp, and so on) once or twice a day, and they are always open, so their binaries and libraries are pre-read into memory and stay in memory all day. I rarely close and open these applications, so memory use is wasteful.

If you are using a modern system with SSD, Preload is absolutely useless. Because the access time of SSD is much faster than the average hard disk, there is no point in using Preload.

Preload significantly affects the startup time. Because more applications are pre-read into memory, this will make your system boot and run longer.

You can only see the real difference when you are reloading a large number of applications every day. Therefore, Preload is best suited for developers and testers, who open and close applications many times a day.

Thank you for reading! This is the end of the article on "how to improve the startup time of applications in Linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report