Long PATH, LD_LIBRARY_PATH, LIBPATH, … – what kind of performance impact do they have?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Long PATH, LD_LIBRARY_PATH, LIBPATH, … – what kind of performance impact do they have?
# 1  
Old 10-17-2013
Long PATH, LD_LIBRARY_PATH, LIBPATH, … – what kind of performance impact do they have?

Hi, there!

[_] a long PATH... makes the OS access the disk quite often, hence there is a lot of disk I/O
[_] a long PATH... makes the OS compute a lot of ..., hence a high CPU load

(Edited/added later: Yes, this is not about the lenght of the env. var., but about the number of directories listed.)

What's the right answer on that?

Do we have to consider PATH, LD_LIBRARY_PATH, LIBPATH separately?
Do different Unix flavour OSs react rather differently?

No, it's not from a quiz or an interview. We got such a problem at work, and "the experts" are telling us, it's more of a CPU load issue. I actually doubt that.

Regards,
~j

Last edited by Jochen_Hayek; 10-17-2013 at 11:34 AM..
# 2  
Old 10-17-2013
This needs to be qualified/quantified. I don't think the length of an environment variable is the issue here, but rather the distinct number of filesystems that are hit when an image activates. Each path along the particular defined variable is a directory on a filesystem. Gather statistics!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Ld_library_path

Hi., Currently my LD_LIBRARY_PATH setting is, LD_LIBRARY_PATH=/opt/app/product/11.2.0/client_1/lib Now, I need to append the JAVA to this setting... Can I set this way, Please suggest. ... (4 Replies)
Discussion started by: nuthakki
4 Replies

2. UNIX for Advanced & Expert Users

Performance impact of terminal output

Hello, I am doing fluid simulations using OpenFOAM. This program produces a lot of output every time step. Producing output is surely not the most time consuming part, but I wonder whether writing output to the terminal or writing it into a file is faster. With thousands of time steps a... (1 Reply)
Discussion started by: Chuck Morris
1 Replies

3. Shell Programming and Scripting

0403-035 specified path name too long

I get this error when attempting to run a simple .ksh script. This script runs fine on other servers. What causes this error? (3 Replies)
Discussion started by: ivanachukapawn
3 Replies

4. Shell Programming and Scripting

specified path name is too long passing parameters to awk via shell script

Hello, I have this shell script that runs awk code by passing in parameters however now it doesn't work anymore with the parameters and I don't know why. It removes duplicates from an input file based on a part of the last field and a key column. It removes the record with the older datetime... (0 Replies)
Discussion started by: script_op2a
0 Replies

5. Windows & DOS: Issues & Discussions

Long UNC path not working in CMD.EXE on remote machine

Hi, I am trying to connect to a remote server using Plink tool. Both my local and remote machines are Windows. On remote server, I have OpenSSH server installed. I am able to run commands on remote machine but there is some problem with long UNC path, which I noticed today. For... (3 Replies)
Discussion started by: Technext
3 Replies

6. UNIX for Dummies Questions & Answers

Ld_library_path & path

I have googled around to find the difference between LD_LIBRARY_PATH & PATH. But the answers are creating more confusion. What is exact difference between these two paths? (1 Reply)
Discussion started by: tostay2003
1 Replies

7. Programming

lstat long path problem

Hi, We are using lstat in our project. But in case of the path length more than 1024, it's returning error ENAMETOOLONG. Is there any another system call which is supporting more than 1024 path and providing the same info as lstat. Thanks (2 Replies)
Discussion started by: Saurabh78
2 Replies

8. AIX

Aix auditing : performance impact

can someone help me find out the impact of enabling audting on the entire root filesystem. does it have a major hit on the overall performance of the system Thanks so much (0 Replies)
Discussion started by: iam
0 Replies

9. AIX

mkdir: A file or path name is too long

Hi, I have an AIX machine. I am trying to create a directory from within the script, but the message being shown is "mkdir: 0653-358 Cannot create directory 'xxx': A file or path name is too long" I am not giving any 'long' pathname to mkdir. The commands being issued within the script are: ... (0 Replies)
Discussion started by: greenhorn007
0 Replies

10. UNIX for Dummies Questions & Answers

Setting LIBPATH in profile

Hi there, I wonder if anyone can help me. I run an application on an AIX 4.3.3 machine, for which I need to set up the LIBPATH environment variable for a specific user. I need this to be set up automatically when the user logs in (via Exceed), so I tried setting this in the .profile file. ... (7 Replies)
Discussion started by: durnelln
7 Replies
Login or Register to Ask a Question