<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">I don't know if anyone has said it already but I want to applaud you for asking rather than just doing.</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> ubuntu-server <ubuntu-server-bounces@lists.ubuntu.com> on behalf of Steve Langasek <steve.langasek@ubuntu.com><br>
<b>Sent:</b> Thursday, May 23, 2019 12:48:35 PM<br>
<b>To:</b> jim<br>
<b>Cc:</b> ubuntu-server@lists.ubuntu.com; ubuntu-devel@lists.ubuntu.com<br>
<b>Subject:</b> [EXTERNAL] Re: mlocate - what is it good for?</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hi Jim,<br>
<br>
On Wed, May 22, 2019 at 03:51:14PM -0400, jim wrote:<br>
<br>
> Seems to me for an individual user such<br>
> as I (my laptop runs Ubuntu 18.04), locate<br>
> and (the cumbersome) find are sufficient.<br>
> To what extent does decision-making balance<br>
> net ops and large system administrators as<br>
> opposed to individual users?<br>
<br>
Currently, this is seeded as part of ubuntu-standard, which is common to all<br>
Ubuntu flavors.  If the discussion led to a determination that this still<br>
made sense to include by default on desktops but not servers, or vice versa,<br>
we could seed this as part of one Ubuntu flavor or the other.<br>
<br>
My own sense is that this is not a server vs desktop thing; there are users<br>
of locate, to be sure, but I believe they are a very small minority on both<br>
desktop and server (small on desktop because the user will generally use the<br>
gui instead; small on server because most server use is not interactive at<br>
the shell).  I don't think the benefit of having locate available by default<br>
justifies the daily disk thrashing / energy usage on every Ubuntu machine<br>
everywhere.  I think it's not onerous for those who want to use locate to<br>
manually install it the first time they need it on a machine.<br>
<br>
But this thread is here to be a sanity check on that opinion, to understand<br>
if the locate db being available by default either affects so many users, or<br>
has so great an impact on some use cases, that we should consider leaving it<br>
enabled by default despite the daily disk usage for everyone not using it.<br>
<br>
<P id=c1-id-7 
style="FONT-SIZE: 0px; FONT-FAMILY: Arial; COLOR: #fff">Harriscomputer</P>
<TABLE id=c1-id-8 
style="BORDER-LEFT-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px; BORDER-TOP-WIDTH: 0px">
  <COLGROUP id=c1-id-9>
  <COL id=c1-id-10></COL></COLGROUP>
  <TBODY id=c1-id-11>
  <TR id=c1-id-12>
    <TD id=c1-id-13>
      <TABLE id=c1-id-14 style="HEIGHT: 0px; WIDTH: 100%" cellSpacing=0 
      cellPadding=0 border=0>
        <COLGROUP id=c1-id-15>
        <COL id=c1-id-16>
        <COL id=c1-id-17>
        <COL id=c1-id-18></COL></COL></COL></COLGROUP>
        <TBODY id=c1-id-19>
        <TR id=c1-id-27>
          <TD id=c1-id-28 style="WIDTH: 33%">
            <P style="FONT-SIZE: 10pt; FONT-FAMILY: Arial" align=left><B 
            id=c1-id-30><FONT id=c1-id-31 face=Arial>Leroy Tennison<BR 
            id=c1-id-32></FONT></B><FONT id=c1-id-33 size=2 
            face=Arial>Network Information/Cyber Security Specialist<BR id=c1-id-38><SPAN id=c1-id-39 
            style="FONT-SIZE: 8pt">E: leroy@datavoiceint.com</SPAN></FONT></P></TD>
          <TD id=c1-id-40 style="WIDTH: 33%">
            <P style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; TEXT-ALIGN: center" 
            align=center><BR id=c1-id-43><IMG border=0 
            src="cid:Data-Voice-International-LOGO_aa3d1c6e-5cfb-451f-ba2c-af8059e69609.PNG"></P></TD>
          <TD id=c1-id-45 style="WIDTH: 33%">
            <P id=c1-id-46 
            style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; TEXT-ALIGN: right" 
            align=right><FONT id=c1-id-47 style="FONT-SIZE: 8pt" 
            face=Arial>2220 Bush Dr<BR id=c1-id-48>McKinney, Texas<BR 
            id=c1-id-49>75070<BR><FONT id=c1-id-51 
            style="FONT-SIZE: 8pt" face=Arial><A 
            href="http://www..com">www.datavoiceint.com</A></FONT></FONT><FONT 
            id=c1-id-56 size=3> </FONT></P></TD></TR></TBODY></TABLE>
      <TABLE id=c1-id-57 style="WIDTH: 100%" cellSpacing=2 border=0>
        <COLGROUP id=c1-id-58>
        <COL id=c1-id-59>
        <COL id=c1-id-60>
        <COL id=c1-id-61></COL></COL></COL></COLGROUP>
        <TBODY id=c1-id-62>
        <TR id=c1-id-63>
          <TD id=c1-id-64 colSpan=3>
            <P id=c1-id-65 
            style="MARGIN-BOTTOM: 0px; FONT-SIZE: 10pt; FONT-FAMILY: Arial; MARGIN-TOP: 0px"><FONT 
            id=c1-id-66 size=1 face=Arial>This message has been sent on behalf 
            of a company that is part of the Harris Operating Group of 
            Constellation Software Inc. These companies are listed <A 
            href="http://subscribe.harriscomputer.com/">here</A>. </FONT></P>
            <P 
            style="MARGIN-BOTTOM: 0px; FONT-SIZE: 10pt; FONT-FAMILY: Arial; MARGIN-TOP: 0px"><FONT 
            size=1 face=Arial>If you prefer not to be contacted by Harris 
            Operating Group <A 
            href="http://subscribe.harriscomputer.com/">please notify us</A>. 
            </FONT></P>
            <P 
            style="MARGIN-BOTTOM: 0px; FONT-SIZE: 10pt; FONT-FAMILY: Arial; MARGIN-TOP: 0px"> </P>
            <P 
            style="MARGIN-BOTTOM: 0px; FONT-SIZE: 10pt; FONT-FAMILY: Arial; MARGIN-TOP: 0px"><FONT 
            size=1 face=Arial></FONT></P>
            <P 
            style="MARGIN-BOTTOM: 0px; FONT-SIZE: 10pt; FONT-FAMILY: Arial; MARGIN-TOP: 0px"><FONT 
            size=1 face=Arial>This message is intended exclusively for the 
            individual or entity to which it is addressed. This communication 
            may contain information that is proprietary, privileged or 
            confidential or otherwise legally exempt from disclosure. If you are 
            not the named addressee, you are not authorized to read, print, 
            retain, copy or disseminate this message or any part of it. If you 
            have received this message in error, please notify the sender 
            immediately by e-mail and delete all copies of the 
            message.</FONT></P></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<P id=c1-id-74 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> </P>
> On 5/22/19 3:47 PM, Julian Andres Klode wrote:<br>
> > On Wed, May 22, 2019 at 01:19:48PM -0600, Neal McBurnett wrote:<br>
> > > I use mlocate multiple times a day.<br>
> > > Find is way too slow and inconvenient for finding files in a big<br>
> > > set of filesystems, compared to properly configuring mlocate.<br>
> > Specifically, the filesystem must be huge or on a slow medium. It might make<br>
> > sense to move it out of standard and elsewhere, as I don't think it's<br>
> > necessarily needed everywhere, such as laptops.<br>
> > <br>
> > Consider my laptop, fairly standard, 512 GB NVME SSD, about 250G allocated,<br>
> > containing about 1435134 files. mlocate foo takes 1s, find / -mount<br>
> > -name '*foo*' takes about 7-9 secs, or 19 seconds with all mount points<br>
> > (but there is a davfs mount of an internet server, so things might be<br>
> > screwed up a bit).<br>
> > <br>
> > 19s to find something is perfectly workable, also you don't usually<br>
> > find from /, but you have an idea where things are, so it will be much<br>
> > faster.<br>
> > <br>
> > I think mlocate only really makes sense on data storage servers with<br>
> > huge disks, or on machines with HDDs. I therefore do not think the<br>
> > overhead of building the index is warranted for most users. It might<br>
> > make sense to keep mlocate in always-on tasks, like servers, but get<br>
> > rid of it from desktop scenarios.<br>
<br>
<br>
-- <br>
Steve Langasek                   Give me a lever long enough and a Free OS<br>
Debian Developer                   to set it on, and I can move the world.<br>
Ubuntu Developer                                   <a href="https://www.debian.org/">
https://www.debian.org/</a><br>
slangasek@ubuntu.com                                     vorlon@debian.org<br>
</div>
</span></font></div>
</body>
</html>