ehi Gravsky, i'm having little troubles with your asd.service:
systemd-analyze blame 16115ms asd.service 4827ms systemd-vconsole-setup.service
16sec?? Isn't it too much?
@nierro - depends on how much data you are syncing and how fast/slow your HDD/SSD is.... All the script does is to call rsync to copy what you tell it to over to tmpfs. How much data are you copying?
cat /etc/asd.conf | grep WHATTOSYNC=
#WHATTOSYNC=('/var/log' '/srv/http' '/home/foo/bar')
I can't answer your specific question. It shouldn't take 16 s to copy over 71 Mb. As a test, disable asd (stop it first so it syncs back) and try psd which is unique to browsers. What does the copy time for it equal?
$ systemd-analyze blame 1583ms psd.service $ du --max-depth 1 -h /tmp | grep chromium 108M /tmp/facade-chromium
systemd-analyze blame 18860ms psd.service 5517ms rc-local.service
du --max-depth 1 -h /tmp | grep chromium 0 /tmp/.org.chromium.Chromium.exzeng 71M /tmp/federico-chromium
I think it is pretty too much
The entire bootup takes 32sec, and 18 are psd! (well rc-local.service too takes too long to me...5 sec for 3 "echo" commands...)
Last edited by nierro (2012-06-01 20:11:34)
That is crazy... what kind of HDD do you have in your box? Could it be because systemd is too aggressive starting all your stuff at once thus rapping your HDD?
*Disable psd on startup.
*Log into X
*Manually start psd once you are sure there is no HDD activity
How fast is it now?
time sudo systemctl start psd.service real 0m2.127s user 0m0.013s sys 0m0.009s
Damn, how can it be?
well, ok...how can i fix it then? may be putting a sleep 30 for example, but where?
No idea... systemd is kinda black box to me. What I found is that unless you have a fast SSD, systemd offers no difference in startup speed vs. sysv + backgrounding daemons.
Do you think so? i think it is really good anyway, i like the way it handles the services.
Well may be sysv + back daemons + e4rat =systemd, it is not too bad.
I want to try out e4rat with systemd, may be it can make some difference.
Solved here: https://bbs.archlinux.org/viewtopic.php … 8#p1109638
Yes, but as far as yesterday afternoon, i was using asd to sync /var/log. But now i'm using systemd and i do not need it (well, not a lot), so i removed it
Interesting. I have 2gb of RAM (i686), ussually (i have KDE) i have 50% ram usage. Would installed ASD eat a lot of RAM? Do you have to have at least 4GB of ram?
Appreciate you work, graysky!
If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau
Registered Linux User: #559057
is it possible to port this package on a fedora/rpm system? i would like to use it on my fedora laptop but i'm not sure if it's running as expected as under arch. fortunately the package is shipped with systemd files
@shark - thanks. To your question, it depends on how much data you plan to sync. If you plan to sync 1 G for example that might kill you If it's just a browser profile (100 M or so) that isn't a problem. If it is a browser profile use psd not asd.
@broken pipe - dunno, I don't run fedora stuff
@unikum - this is a known issue I haven't yet had time to address.
xduugu helped solve this for psd:
Anyone game to do it for asd? I just do not have the time right now.
Something like that.
[Unit] Description=Symlinks and syncs user defined dirs to RAM thus reducing HDD/SDD calls and speeding-up the system Wants=local-fs.target [Service] ExecStartPre=/usr/bin/anything-sync-daemon sanity ExecStart=/usr/bin/anything-sync-daemon check ExecStart=/usr/bin/anything-sync-daemon sync ExecStop=/usr/bin/anything-sync-daemon sync ExecStop=/usr/bin/anything-sync-daemon unsync [Install] WantedBy=multi-user.target
#!/bin/sh /usr/bin/anything-sync-daemon sync &> /dev/null
If it's just a browser profile (100 M or so) that isn't a problem. If it is a browser profile use psd not asd.
I'm very intrigued by the *sds, but to me it looks like asd is a superset of psd. Why should I still use psd for browser profiles? Does it do something different?
Last edited by Runiq (2012-06-06 08:25:22)
Psd has more options for managing browsers and users. Ads is an offshoot of psd and is more generic with less niceties. If you're syncing just browsers, psd is the way to go.
Your program is really very useful. I have a very large hosts file (with approximately 1.300.000 lines) which slowed down my browsing. I moved my hosts file to a folder relocated into tmpfs via asd and I created a symbolic link in /etc/. Now, my browsing speed is much faster! So, thanks for this script!