Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.unix.programmer > #16932

Re: Default PATH setting - reduce to something more sensible?

From Rainer Weikusat <rweikusat@talktalk.net>
Newsgroups comp.unix.programmer
Subject Re: Default PATH setting - reduce to something more sensible?
Date 2025-01-15 15:38 +0000
Message-ID <877c6wf5o2.fsf@doppelsaurus.mobileactivedefense.com> (permalink)
References <vm5dei$2c7to$1@dont-email.me> <87ikqh5n9u.fsf@doppelsaurus.mobileactivedefense.com> <53xhP.976$GtJ8.93@fx48.iad> <87ed155hdu.fsf@doppelsaurus.mobileactivedefense.com> <poBhP.1243903$bYV2.919023@fx17.iad>

Show all headers | View raw


scott@slp53.sl.home (Scott Lurndal) writes:
> Rainer Weikusat <rweikusat@talktalk.net> writes:
>>scott@slp53.sl.home (Scott Lurndal) writes:
>>> Rainer Weikusat <rweikusat@talktalk.net> writes:
>>>>Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:

[...]

>>>>As far as I could determine, some sort of path searching has existed
>>>>since the 6th edition of UNIX (., /bin and /usr/bin hardcoded in the
>>>>shell) and in its present form, it has existed since the 7th edition of
>>>>UNIX. Which means PATH searching was used on PDP-11 16-bit minicomputers
>>>>in the 1970s. It didn't cause performance problems back
>>>>then and will thus certainly don't cause any today.
>>>
>>> There are cases where it _does_ cause performance degradation, if one or
>>> more of the PATH elements refer to NFS filesystems, for example.
>>
>>The internet RTT from Reading/ UK to Dallas/ Texas is about
>>0.12s. That's fast enough that there's no noticeable latency in
>>interactive shell sessions. I doubt that many real-world NFS
>>installations span â…• of the planet and hence, the latencies certainly
>>ought to be a lot lower.
>
> You seem to have have forgotten that the NFS server needs to
> do a directory lookup on the file server, which adds to the R/T
> latency, sometimes significantly on a busy filesystem.

Well, then, which is it? Local file system operations or network
latencies? Local file system operations on a NFS server are no different
from local file system operations on some other multi-user machine, eg,
the abovementioned PDP-11.

[...]

>>I'm growing a bit allergic to NFS as universal example of deviant
>>behaviour --- that's a problem of NFS and not of code innocently and
>>unknowingly making use of it.
>
> It is something that people run into every day in the real world.

Maybe they do. But certainly not on Linux installations using only local
file systems. I'm also (barely) old enough to remember DCE clusters
based on DEC servers using AFS/ NFS to provide "home directories" and
"software" to diskless workstations and to know how real-world PATHs of
traditional UNIX installation used to look like, basically, every
software package installed into its own hierarchy and all glued together
with PATH into a seamless whole. These PATHs used to have a lot more
than just seven elements. I don't remember latencies being a particular
problem in this enivronment¹.

¹ A whose class B in a single, happy, broadcast domain and using
shared-medium yellowcable and even older  technologies in the more
outlying areas

Back to comp.unix.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Default PATH setting - reduce to something more sensible? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-01-14 11:14 +0100
  Re: Default PATH setting - reduce to something more sensible? cross@spitfire.i.gajendra.net (Dan Cross) - 2025-01-14 13:55 +0000
  Re: Default PATH setting - reduce to something more sensible? Rainer Weikusat <rweikusat@talktalk.net> - 2025-01-14 17:16 +0000
    Re: Default PATH setting - reduce to something more sensible? scott@slp53.sl.home (Scott Lurndal) - 2025-01-14 17:22 +0000
      Re: Default PATH setting - reduce to something more sensible? Kaz Kylheku <643-408-1753@kylheku.com> - 2025-01-14 17:59 +0000
      Re: Default PATH setting - reduce to something more sensible? Rainer Weikusat <rweikusat@talktalk.net> - 2025-01-14 19:23 +0000
        Re: Default PATH setting - reduce to something more sensible? scott@slp53.sl.home (Scott Lurndal) - 2025-01-14 22:17 +0000
          Re: Default PATH setting - reduce to something more sensible? cross@spitfire.i.gajendra.net (Dan Cross) - 2025-01-14 23:24 +0000
          Re: Default PATH setting - reduce to something more sensible? Rainer Weikusat <rweikusat@talktalk.net> - 2025-01-15 15:38 +0000
            Re: Default PATH setting - reduce to something more sensible? scott@slp53.sl.home (Scott Lurndal) - 2025-01-15 15:52 +0000
              Re: Default PATH setting - reduce to something more sensible? Rainer Weikusat <rweikusat@talktalk.net> - 2025-01-15 19:19 +0000
                Re: Default PATH setting - reduce to something more sensible? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-01-16 00:03 +0100
                Re: Default PATH setting - reduce to something more sensible? scott@slp53.sl.home (Scott Lurndal) - 2025-01-15 23:14 +0000
                Re: Default PATH setting - reduce to something more sensible? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-01-19 13:50 +0100
                Re: Default PATH setting - reduce to something more sensible? cross@spitfire.i.gajendra.net (Dan Cross) - 2025-01-15 23:26 +0000
                Re: Default PATH setting - reduce to something more sensible? Rainer Weikusat <rweikusat@talktalk.net> - 2025-01-16 11:51 +0000
                Re: Default PATH setting - reduce to something more sensible? Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2025-01-19 14:10 +0100
                Re: Default PATH setting - reduce to something more sensible? Rainer Weikusat <rweikusat@talktalk.net> - 2025-01-19 20:36 +0000
                Re: Default PATH setting - reduce to something more sensible? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-01-19 15:55 -0800
                Re: Default PATH setting - reduce to something more sensible? antispam@fricas.org (Waldek Hebisch) - 2025-01-16 17:01 +0000
                Re: Default PATH setting - reduce to something more sensible? Rainer Weikusat <rweikusat@talktalk.net> - 2025-01-16 19:07 +0000

csiph-web