Package Details: gopreload-git r59.21b08e6-1

Git Clone URL: https://aur.archlinux.org/gopreload-git.git (read-only, click to copy)
Package Base: gopreload-git
Description: Preloads files needed for given programs
Upstream URL: http://forums.gentoo.org/viewtopic-t-622085-highlight-preload.html
Licenses: GPL
Conflicts: gopreload
Provides: gopreload
Submitter: kokoko3k
Maintainer: kokoko3k
Last Packager: kokoko3k
Votes: 29
Popularity: 0.47
First Submitted: 2013-11-25 11:12 (UTC)
Last Updated: 2022-03-21 13:15 (UTC)

Dependencies (3)

Required by (0)

Sources (1)

Latest Comments

kokoko3k commented on 2022-03-21 13:18 (UTC)

Thank you Yutsuten, fixed

Yutsuten commented on 2022-03-21 11:21 (UTC)

Got this error while installing:

Cloning into bare repository '/home/mateus/Packages/AUR/20-gopreload/gopreload'...
fatal: remote error:
  The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.

Fixed with this change:

diff --git a/PKGBUILD b/PKGBUILD
index 6631181..5054b97 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,7 +15,7 @@ provides=('gopreload')
 conflicts=('gopreload')
 backup=('etc/gopreload.conf')
 install=${_gitname}.install
-source=('git://github.com/kokoko3k/gopreload.git')
+source=('git+https://github.com/kokoko3k/gopreload.git')
 sha256sums=('SKIP')

 pkgver() {

kokoko3k commented on 2022-01-21 08:07 (UTC)

normalname012: Doesnt'it? Sources are still there and the package dependancies are met.

normalname012 commented on 2022-01-21 06:18 (UTC) (edited on 2022-01-21 06:18 (UTC) by normalname012)

Does this package still work? hasn't been updated for quite some time

kokoko3k commented on 2017-05-05 09:33 (UTC) (edited on 2017-05-05 09:33 (UTC) by kokoko3k)

Tjuh: thanks, english is not my primary language, obviously :) Just fixed.

Tjuh commented on 2017-05-04 21:42 (UTC)

Hi there, noticed a small typo error in your gopreload-prepare script. It says '...when you've done.' I think you mean "you're"?

kokoko3k commented on 2016-12-15 12:46 (UTC)

Good spot Tjuh, thanks, just updated.

Tjuh commented on 2016-12-10 14:01 (UTC)

I've noticed wmctrl is required for the gopreload-batch-refresh.sh script to function properly.

KarlFiabeschi commented on 2016-08-04 21:51 (UTC)

oh man very nice! ty

kokoko3k commented on 2016-01-26 10:12 (UTC)

Ops, fixed.

heddson commented on 2016-01-25 19:47 (UTC)

Excellent! But looks like you forgot to commit .SRCINFO :) mksrcinfo git add .SRCINFO git commit -m '...' git push

kokoko3k commented on 2016-01-25 16:46 (UTC)

Thanks, i fully adopted your PKGBUILD :) @zajozor: If maxthon is based upon chrome/chromium, then it is a known problem that strace is unable to trace it. "0" files could not be preloaded means everything is ok. To be sure the thing is working, check if your ram usage is higher after starting the service (grep for mapandlock process)

heddson commented on 2016-01-21 22:50 (UTC)

Hi, great program! I made some small changes to the PKGBUILD. Just some friendly recommendations :) . Copy whatever you like. The PKGBUILD is here: http://www.hastebin.com/ivehoyoxuv.hs Some of the changes I made was: - Removed coreutils from depends array (since it's part of the group Base) - Added makedepends, provides and backup arrays - Let makepkg take care of the cloning - Added pkgver function - And other small fixes..

zajozor commented on 2015-12-29 14:16 (UTC)

Experiencing the same error as @proshot (if it is an error), although you say everything looks ok, It says 0/x, files could not be preloaded because not found.. Does it mean that 0 files were loaded and none could be found, or that 0 files were not preloaded (therefore all of them were loaded)? That is like a word pun.. My status: ● gopreload.service - gopreload: Preloads files needed for given programs. Loaded: loaded (/usr/lib/systemd/system/gopreload.service; enabled; vendor preset: disabled) Active: active (running) since Tue 2015-12-29 15:05:09 CET; 2min 38s ago Main PID: 1528 (StartPreload.sh) CGroup: /system.slice/gopreload.service ├─1528 /bin/bash /usr/share/gopreload/bin/StartPreload.sh ├─5656 /usr/share/gopreload/bin/mapandlock.x86_64 /tmp/listpreload.txt └─5658 sleep 300 Dec 29 15:05:31 zor-reloaded StartPreload.sh[1528]: 0/479 files could not be preloaded because they were not found (guake.1000.openfiles-48MB.txt) Dec 29 15:05:35 zor-reloaded StartPreload.sh[1528]: 0/1102 files could not be preloaded because they were not found (kupfer.1000.openfiles-323MB.txt) Dec 29 15:05:35 zor-reloaded StartPreload.sh[1528]: 0/118 files could not be preloaded because they were not found (maxthon.1000.openfiles-44MB.txt) Dec 29 15:05:38 zor-reloaded StartPreload.sh[1528]: 0/373 files could not be preloaded because they were not found (nautilus.1000.openfiles-98MB.txt) Dec 29 15:05:38 zor-reloaded StartPreload.sh[1528]: 0/170 files could not be preloaded because they were not found (pasystray.1000.openfiles-37MB.txt) Dec 29 15:05:43 zor-reloaded StartPreload.sh[1528]: 0/212 files could not be preloaded because they were not found (tint2.1000.openfiles-22MB.txt) Dec 29 15:05:43 zor-reloaded StartPreload.sh[1528]: 1/4 - Computing preload list... Dec 29 15:05:44 zor-reloaded StartPreload.sh[1528]: 2/4 - Computing total MB... skipped Dec 29 15:05:44 zor-reloaded StartPreload.sh[1528]: 3/4 - Starting preload cycle at Tue Dec 29 15:05:44 CET 2015 Dec 29 15:05:44 zor-reloaded StartPreload.sh[1528]: 4/4 - Sleeping 300 sec. +I experience no speedup in any of the apps. +Second problem: gopreload-prepare does not work with some apps, for example maxthon, when I run gopreload-prepare maxthon, the app does not start, just hangs (although ps axjf, shows everything should be ok) Is it me doing something wrong, or it may just happen that on some machines it does not help very much?

kokoko3k commented on 2015-12-02 11:15 (UTC)

Ops, you're right; i've just updated the PKGBUILD.

nmaggioni commented on 2015-12-02 07:43 (UTC)

/usr/share/gopreload/README comes out as a symlink to itself...?

kokoko3k commented on 2015-05-04 10:46 (UTC)

Did it https://github.com/kokoko3k/gopreload/commit/cbc1b494b6259fdf2f7976f244bf984b7e0d2265

Einhard commented on 2015-05-02 20:23 (UTC)

Yes, with those changes it works as intended. It was nice try with -HUP as in theory it should make mapandlock hang up, reload config and start again but it seems there are many cases when this just doesn't work.

kokoko3k commented on 2015-05-02 18:57 (UTC)

You're right Einhard, as mapandlock does not react to HUP, the correct way should be: --------- else #echo "Nothing changed, Sleeping $LONG_DELAY sec." sleep $LONG_DELAY killall mapandlock.$ARCH >/dev/null 2>/dev/null $INSTALLDIR/bin/mapandlock.$ARCH /tmp/listpreload.txt & fi -------- Does it work that way? I'll fix in the git by monday if is all right.

Einhard commented on 2015-05-02 16:29 (UTC)

For me it kills mapandlock after LONG_DELAY and doesn't restart it if nothing changed. Culprit is line 83 in StartPreload.sh, as I see it if /tmp/enabled.prec.txt and /tmp/enabled.txt don't differ your main loop is omitted, it kills mapandlock.$ARCH and that's all, there is no mapandlock restart after it so nothing is locked in memory and whole purpose of gopreload is gone. If nothing changes in enabled.txt StartPreload.sh will only do killall -HUP mapandlock.$ARCH >/dev/null 2>/dev/null infinite number of times, once per LONG_DELAY. You either add $INSTALLDIR/bin/mapandlock.$ARCH /tmp/listpreload.txt 2>/dev/null >/dev/null & after killing it in line 83 or just delete it (files in memory won't refresh in this case but few files out of sync probably don't justify constant hdd activity after each LONG_DELAY when you can just restart service on demand when you know many files in memory changed (probably only after large system update))

kokoko3k commented on 2015-03-17 16:28 (UTC)

Nothing wrong from what i see.

proshot commented on 2015-03-17 14:12 (UTC)

I was wondering, if gopreload-git is working correctly on my system with the following output of systemctl status gopreload.services ● gopreload.service - gopreload: Preloads files needed for given programs. Loaded: loaded (/usr/lib/systemd/system/gopreload.service; enabled; vendor preset: disabled) Active: active (running) since Tue 2015-03-17 15:00:35 CET; 10min ago Main PID: 294 (StartPreload.sh) CGroup: /system.slice/gopreload.service ├─ 294 /bin/bash /usr/share/gopreload/bin/StartPreload.sh ├─13206 /usr/share/gopreload/bin/mapandlock.x86_64 /tmp/listpreload.txt └─13275 sleep 300 Mar 17 15:01:03 nsaSystem StartPreload.sh[294]: 0/2422 files could not be preloaded because they were not found (telegram.1000.openf...MB.txt) Mar 17 15:01:03 nsaSystem StartPreload.sh[294]: 0/95 files could not be preloaded because they were not found (thunar.1000.openfiles-22MB.txt) Mar 17 15:01:03 nsaSystem StartPreload.sh[294]: 1/4 - Computing preload list... Mar 17 15:01:03 nsaSystem StartPreload.sh[294]: 2/4 - Computing total MB... skipped Mar 17 15:01:04 nsaSystem StartPreload.sh[294]: 3/4 - Starting preload cycle at Tue Mar 17 15:01:04 CET 2015 Mar 17 15:01:04 nsaSystem StartPreload.sh[294]: 4/4 - Sleeping 300 sec. Mar 17 15:06:04 nsaSystem StartPreload.sh[294]: 2/4 - Computing total MB... skipped Mar 17 15:06:04 nsaSystem StartPreload.sh[294]: 3/4 - Starting preload cycle at Tue Mar 17 15:06:04 CET 2015 Mar 17 15:06:04 nsaSystem StartPreload.sh[294]: 4/4 - Sleeping 300 sec. Mar 17 15:11:04 nsaSystem StartPreload.sh[294]: /usr/share/gopreload/bin/StartPreload.sh: line 86: 6681 Hangup $IN...ev/null Hint: Some lines were ellipsized, use -l to show in full. It seems not to work correctly. Any idea's?

promike commented on 2015-01-30 15:09 (UTC)

Thank you very much for your help. I updated my incomplete list with your values. I don't say I feel any difference, but we did our best. Thanks again

kokoko3k commented on 2015-01-30 11:12 (UTC)

here my list stripped from unuseful files: http://pastebin.com/s0MPfH07

promike commented on 2015-01-30 08:35 (UTC)

Thank you for your quick help! I've tried what you had advised. You know if I just type simply sudo gopreload-prepare chromium I get: Chromium can not be run as root. Please start Chromium as a normal user. To run as root, you must specify an alternate --user-data-dir for storage of profile information. and I only have an OK button. I tried what you had said : sudo gopreload-prepare chromium --user-data-dir=/home/user/.config/chromium Well unfortunately nothing happened/opened, again... or maybe yes. Next time when I tried to start the chromium it said: Your preferences can not be read. Some features may be unavailable and changes to preferences won't be saved. And it has forgotten all my settings. I tried to remove the default folder under the .config folder, but the message still appeared. I had to remove the whole chromium folder. -Not a big deal, I don't have too much settings- I don't really know how gopreload works, but if it works for you with chromium can't you just send me your chromium file from the /usr/share/gopreload/enabled folder? Thanks a lot!

kokoko3k commented on 2015-01-29 14:51 (UTC)

I don't know why chromium does not get "prepared" as a regular user, strace fails in that. you can use this trick to prepare chromium as root: gopreload-prepare chromium --user-data-dir

promike commented on 2015-01-29 14:41 (UTC)

Hi! Do you happen to know why this doesn't work with Chromium? I installed because my Chromium is really slow at the first time, over 20 seconds. Every program works well with this except the Chromium. I gave my user permissions to the /usr/share/gopreload/enabled folder. Let's say gopreload-prepare jitsi, it opens the jitsi and when I hit enter it closes it, and calculates the megabytes. Next time the jitsi started faster. I typed gopreload-prepare chromium, nothing happened, nothing started, nothing opened, I wait 30 minutes or so and in the end I hit an enter. It says: Detection completed, parsing file list... Done with parsing, backtracing symbolic links... 126 on 126 done, will use 64MB to preload them /usr/share/gopreload/enabled/chromium.1000.openfiles-64MB.txt compiled. I guess 64mb is not too much, and it should be much bigger. I tried a reboot by the way, but Chromium is still very slow. [Before I gave permissions to my user, I tried gopreload-prepare chromium with root. -Hopefully- Chromium doesn't run with root.] Thanks in advance!