What goes into default Debian?
What goes into default Debian?
Posted Feb 17, 2021 20:43 UTC (Wed) by mathstuf (subscriber, #69389)Parent article: What goes into default Debian?
Also, using mtimes seems weird for system packages. If I downgrade a package or install a newer version that happened to be built before the newer one (copr repositories on Fedora, AUR on Arch, or whatever Ubuntu is providing…can't remember the name), does `updatedb` get confused (AFAIU, timestamps tend to come from the package, not install time)?
Posted Feb 17, 2021 21:14 UTC (Wed)
by juliank (guest, #45896)
[Link]
Posted Feb 17, 2021 22:08 UTC (Wed)
by warrax (subscriber, #103205)
[Link] (24 responses)
I mean, if your busy loop is 'find a file' then maybe something like it makes sense, but if you need to do that then you should find a better way to do it than calling locate.
Posted Feb 17, 2021 22:25 UTC (Wed)
by Sesse (subscriber, #53779)
[Link] (23 responses)
“plocate LWN” takes 8 milliseconds.
I wrote plocate because mlocate's slowness was a real impediment to my (volunteer) sysadmin tasks. find is fine if you have a tiny system or a narrow search scope, but even on my laptop's SSD with a pretty small installation, it takes 2–3 seconds to run.
Posted Feb 17, 2021 23:28 UTC (Wed)
by clump (subscriber, #27801)
[Link] (5 responses)
I like the ease of locate but switched to find years ago because find is always up to date.
Posted Feb 18, 2021 6:12 UTC (Thu)
by dowdle (subscriber, #659)
[Link]
If I've done a lot of package installs or updates... I'll often run updatedb before using locate. The updatedb action usually only takes a second or two. So making locate as up-to-date as find, is still way, way faster than find.
Yes, there are feature differences because locate only matches file/dir names whereas find has a whole slew of properties you can search for. It does NOT need to be an either or... or one is better than the other. Use both, they are both great.
Posted Feb 18, 2021 7:29 UTC (Thu)
by anton (subscriber, #25547)
[Link] (3 responses)
It's funny that some people argue that updatedb is too costly while others argue that "find /" (which costs hardly less) is fast enough.
Posted Feb 18, 2021 9:20 UTC (Thu)
by smcv (subscriber, #53363)
[Link] (2 responses)
Posted Feb 18, 2021 9:39 UTC (Thu)
by anton (subscriber, #25547)
[Link] (1 responses)
Posted Feb 18, 2021 9:44 UTC (Thu)
by Sesse (subscriber, #53779)
[Link]
Posted Feb 18, 2021 6:02 UTC (Thu)
by atai (subscriber, #10977)
[Link] (3 responses)
how to disable GNOME Tracker: https://www.linuxquestions.org/questions/ubuntu-63/how-to...
how to disable KDE Baloo: https://askubuntu.com/questions/1214572/how-do-i-stop-and...
Posted Feb 18, 2021 8:45 UTC (Thu)
by Wol (subscriber, #4433)
[Link]
I'm a bit like that - my grief was with Akonadi, I think the longest I waited to log in was about 36 hours, I ended up installing xfce in order to get a usable system.
(That 36 hours - that wasn't "login until usable desktop", it was "login until I killed the system in frustration". For someone who uses their PC as a desktop, ie switch it off every night, login times like that just aren't acceptable. Well, they're not acceptable full stop, but ...)
Cheers,
Posted Feb 19, 2021 20:18 UTC (Fri)
by clump (subscriber, #27801)
[Link]
Posted Feb 25, 2021 10:56 UTC (Thu)
by oak (guest, #2786)
[Link]
Posted Feb 18, 2021 8:52 UTC (Thu)
by josh (subscriber, #17465)
[Link]
Posted Feb 19, 2021 18:48 UTC (Fri)
by jond (subscriber, #37669)
[Link]
Posted Feb 25, 2021 13:02 UTC (Thu)
by Hello71 (subscriber, #103412)
[Link] (3 responses)
Posted Feb 25, 2021 13:52 UTC (Thu)
by zdzichu (subscriber, #17118)
[Link] (2 responses)
Posted Feb 25, 2021 14:03 UTC (Thu)
by pizza (subscriber, #46)
[Link] (1 responses)
(So it's double-digit-ms speeds..)
Posted Feb 25, 2021 15:33 UTC (Thu)
by zdzichu (subscriber, #17118)
[Link]
Posted Mar 13, 2021 18:10 UTC (Sat)
by nix (subscriber, #2304)
[Link] (6 responses)
I know nobody cares about people with networked filesystems any more, but this made me sad :(
Posted Mar 20, 2021 8:45 UTC (Sat)
by Sesse (subscriber, #53779)
[Link] (5 responses)
You could probably even just make a shell script that calls plocate multiple times. The main reason I've never done it is that it's such a niche case nobody's ever asked for it—it requires a lot of admin intervention.
Posted Mar 23, 2021 20:12 UTC (Tue)
by nix (subscriber, #2304)
[Link] (4 responses)
Posted Mar 28, 2021 10:39 UTC (Sun)
by Sesse (subscriber, #53779)
[Link] (3 responses)
Posted Mar 28, 2021 10:52 UTC (Sun)
by zdzichu (subscriber, #17118)
[Link]
Posted Apr 27, 2021 12:54 UTC (Tue)
by nix (subscriber, #2304)
[Link] (1 responses)
Posted Mar 27, 2022 15:50 UTC (Sun)
by nix (subscriber, #2304)
[Link]
Before, with GNU findutils: 40 mins to build the locatedb, 10 mins if everything was in cache. Afterwards (hot cache figures only): 56 seconds. DBs about five times smaller. As for times:
% /usr/bin/time locate wombat
% /usr/bin/time locate -r wombat
% /usr/bin/time locate -r womb.t
Afterwards:
% /usr/bin/time locate -r wombat
% /usr/bin/time locate -r womb.t
This is with a LOCATE_PATH with 19 databases in it, so I think we can safely say that the 20-fold increases in plocate time implied by this are... well... still pretty insignificant :)
Posted Feb 22, 2021 9:29 UTC (Mon)
by amarao (guest, #87073)
[Link]
Before crontab randomization was introduced, it was even noticed by electrical operator of data center. He asked 'what is happening at 4:00' every night?'. It was crontab, doing cron.daily on all machines. I suspect, locate update was the part of that electricity spike too.
What goes into default Debian?
What goes into default Debian?
What goes into default Debian?
What goes into default Debian?
What goes into default Debian?
"rlocate is an implementation of the ``locate'' command that is always up-to-date." Except that rlocate itself is not up-to-date; it was written before inotify/fanotify, so it uses its own kernel module instead. But maybe one of the current locate implementors can add an always-up-to-date feature based on fanotify.
What goes into default Debian?
What goes into default Debian?
It also depends on how you value the user's time vs. the computer's time. However, on my personal system I indeed do not run updatedb automatically, because last time I did (long ago) it would run right on system startup (i.e., every morning) and make the system sluggish.
What goes into default Debian?
What goes into default Debian?
What goes into default Debian?
What goes into default Debian?
Wol
What goes into default Debian?
What goes into default Debian?
What goes into default Debian?
What goes into default Debian?
What goes into default Debian?
What goes into default Debian?
What goes into default Debian?
What goes into default Debian?
It completely doesn't matter while we are talking about "find / …" taking over 9 minutes, so let's end this subthread here.
What goes into default Debian?
What goes into default Debian?
What goes into default Debian?
What goes into default Debian?
What goes into default Debian?
What goes into default Debian?
What goes into default Debian?
[...]
8.09user 0.08system 0:08.25elapsed 99%CPU (0avgtext+0avgdata 2084maxresident)k
[...]
19.75user 0.40system 0:20.38elapsed 98%CPU (0avgtext+0avgdata 2196maxresident)k
[...]
24.98user 0.03system 0:25.08elapsed 99%CPU (0avgtext+0avgdata 2184maxresident)k
% /usr/bin/time locate wombat
[...]
0.00user 0.00system 0:00.02elapsed 71%CPU (0avgtext+0avgdata 4140maxresident)k
[...]
4.95user 0.10system 0:01.68elapsed 299%CPU (0avgtext+0avgdata 10952maxresident)k
[...]
5.15user 0.06system 0:01.72elapsed 302%CPU (0avgtext+0avgdata 11012maxresident)k
What goes into default Debian?