LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Disabling prelink on RHEL 6.3 (https://www.linuxquestions.org/questions/linux-server-73/disabling-prelink-on-rhel-6-3-a-4175454726/)

dazdaz 03-19-2013 12:34 PM

Disabling prelink on RHEL 6.3
 
Hi,

I have been tasked to setup several servers, database, web, mail, file and have been trying to figure out if I should disable prelink or not. prelink is enabled by default in this release (RHEL 6.3).

Does a server running the above services benefit significantly enough with improved performance to justify leaving pre-linking enabled on the system.

I've seen a lot of people discuss the advantages of using pre-linking on a desktop system, but does it make sense to leave it running on a fast server, does anyone have benchmarks on how it improves performance of httpd, smbd, postfix, mysqld.

I would think that most people leave it enabled or don't even know about it.

So part 2 of my question is..

I understand that pre-linking causes changes in a binary file, and therefore aide which is calculating checksums and noting mtimes, it is often tripped because of the pre-linking and not because of a cracker modifying the system binary.

How can I get aide working with prelink. I am aware of this previous post where a user disabled prelink to get aide to work, but that's a workaround and not a fix :-)

http://www.linuxquestions.org/questi...issues-584646/

Thanks for any tips.

Emerson 03-19-2013 08:30 PM

I do not see how prelink would be beneficial in a server system.

dazdaz 03-19-2013 11:58 PM

Can you elaborate upon that comment please.

Would a server not receive faster response times.

Emerson 03-20-2013 05:23 PM

From man prelink
Quote:

prelink is a program that modifies ELF shared libraries and ELF dynamically linked binaries in such a way that the time needed for the dynamic linker to perform relocations at startup significantly decreases. Due to fewer relocations, the run-time memory consumption decreases as well (especially the number of unshareable pages). The prelinking information is only used at startup time if none of the dependent libraries have changed since prelinking; otherwise programs are relocated normally.
Since in server environment you do not load any libraries repeatedly (they are loaded at startup) prelinking will not give you significant benefits.


All times are GMT -5. The time now is 09:08 AM.