Re: [PD] Startup times to run Pd patch on Raspberry Pi

2020-10-19 Thread Winfried Ritsch
Am Montag, 19. Oktober 2020, 11:44:20 CEST schrieb Roman Haefeli:
> On Mon, 2020-10-19 at 11:08 +0200, Winfried Ritsch wrote:
> > algo@DIYasb5:~$ systemd-analyze blame
> > 
> >  10.009s jackd.service
> 
> That seems long. How does the systemd unit file looks like? It appears
> jackd fires up quicker (<1s) on my old RPi 3, but then I might be
> fooled by the fact that it has been loaded before and it would require
> more time after boot.
> 
thanks for the info,
 the problem was not really correct addressed:

In experiments I saw it will take 10 seconds to savely start pd after jackd
So I put an 10s in jackd.service:
   ExecStartPost=/bin/sleep ${WAIT_AFTER_START}

The problem is jackd either provides dbus or socket-connection socket to late 
or the connection is not established because some parameters didnt stabilize, 
such as sound card binding with samplerate... but I didnt try to hard to find 
the reason, since for this purpose it was sufficient. 

But for new applications (streaming box) I want a faster boot up 

mfg
  winfried 



> Roman


-- 
--
- ao.Univ.Prof. DI Winfried Ritsch 
- rit...@iem.at - http://iem.at/ritsch
- Institut fuer Elektronische Musik und Akustik
- University of Music and Dramatic Art Graz
- Tel. ++43-316-389-3510 (3170) Fax ++43-316-389-3171 
--



___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Startup times to run Pd patch on Raspberry Pi

2020-10-19 Thread Roman Haefeli

On Mon, 2020-10-19 at 11:08 +0200, Winfried Ritsch wrote:

> algo@DIYasb5:~$ systemd-analyze blame
>  10.009s jackd.service


That seems long. How does the systemd unit file looks like? It appears
jackd fires up quicker (<1s) on my old RPi 3, but then I might be
fooled by the fact that it has been loaded before and it would require
more time after boot. 

Roman




signature.asc
Description: This is a digitally signed message part
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Startup times to run Pd patch on Raspberry Pi

2020-10-19 Thread Winfried Ritsch
Late follow up for topic a my experiences and rfc.

roughly documented, in  
 https://git.iem.at/cm/diyasb 
see firmware/debian ...

With an Olimex A64, (quite like RaspPi3, but industrial specs), I run Debian 
(Armbian) now on many of them over 6 month outdoors, so quite stable and
they boot in 20sec-30sec from internal emmc-flash with usb-sound devices.
It quite fast (14s sec), except for Pd patch waiting for jackd 5-10 seconds 
with my systemd scripts, so there is room for improvement, systemd-analyze 
says::

algo@DIYasb5:~$ systemd-analyze 
   Startup finished in 6.013s (kernel) + 27.266s (userspace) = 33.280s 
   graphical.target reached after 14.179s in userspace

in details it blames:

algo@DIYasb5:~$ systemd-analyze blame
 10.009s jackd.service
  5.108s olsrd.service
  3.271s armbian-ramlog.service
  3.018s pd_stream.service
  2.547s armbian-zram-config.service
  1.829s dev-mmcblk1p1.device
   948ms keyboard-setup.service
   872ms ifupdown-pre.service
   669ms systemd-udev-trigger.service
   527ms man-db.service
   521ms networking.service
   510ms systemd-journald.service
   423ms resolvconf.service
   356ms darkice.service

note: olsrd for network-mesg is not needed so graphical.target is after pd is 
started with no-gui.

to start pd faster we could theoretically rearrange it,  after sound.target 
and jackd.service, but I didn't succeed.



Any hints on optimize the systemd scripts are welcomed. 

mfg 
   winfried



Am Dienstag, 6. Oktober 2020, 17:29:24 CEST schrieb Yann Seznec:
> Thanks for all the thoughts and feedback. I should have said that my 60
> second boot time is when I use the Pi headless, console-only, running the
> patch with -nogui.
> 
> I’ll have a look at disabling some things as suggested, and I’ll report back
> if I make any significant progress! I imagine I’m not alone in this quest
> so I’ll try and document it somehow, or at least post it here for future
> generations.
> 
> I really like the look of piCore OS too. It seems like the right approach
> for me in the long run, though I am wary of jumping into a new system.
> Maybe eventually we can make our own pdCore OS :)
> > On Oct 5, 2020, at 5:27 PM, Thomas Grill  wrote:
> > 
> > Hi all,
> > i am a big fan of the piCore os. [1]
> > That is a stripped down read-only linux distro with loadable modules for
> > alsa, pure data etc.. Boot times are considerable shorter than with
> > raspbian.
> > Of course it also needs some dedication to get used with it.
> > 
> > I have compiled pd, jack and libfftw3 for piCore 11, to be found here:
> > https://g.org/data/dev/picore/piCore-11/
> > 
> > best, Thomas
> > 
> > [1] http://tinycorelinux.net/11.x/armv6/releases/RPi/
> > 
> >> Am 05.10.2020 um 17:05 schrieb Martin Peach :
> >> 
> >> It takes about a minute for the pi to boot. There is not much you can
> >> do about that.
> >> 
> >> Martiin
> >> 
> >> On Mon, Oct 5, 2020 at 11:03 AM Yann Seznec  wrote:
> >>> Hi everyone, long time reader first time writer.
> >>> 
> >>> I’m wondering what people’s experiences are with regards to the startup
> >>> time for running a patch on a raspberry pi.
> >>> 
> >>> For various reasons I’ve started to use Patchbox OS to auto-run my
> >>> patches on startup, which is very reliable and consistent however it
> >>> usually takes about 60 seconds from switching on to making sound. This
> >>> is on various models of Raspberry Pi 3.
> >>> 
> >>> Has anyone managed to speed this up? I haven’t tried the Raspi 4,
> >>> perhaps that is significantly faster?
> >>> 
> >>> Thanks,
> >>> Yann
> >>> 
> >>> 
> >>> ___
> >>> Pd-list@lists.iem.at mailing list
> >>> UNSUBSCRIBE and account-management ->
> >>> https://lists.puredata.info/listinfo/pd-list>> 
> >> ___
> >> Pd-list@lists.iem.at mailing list
> >> UNSUBSCRIBE and account-management ->
> >> https://lists.puredata.info/listinfo/pd-list> 
> > --
> > Thomas Grill
> > http://g.org
> 
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list


-- 
--
- ao.Univ.Prof. DI Winfried Ritsch 
- rit...@iem.at - http://iem.at/ritsch
- Institut fuer Elektronische Musik und Akustik
- University of Music and Dramatic Art Graz
- Tel. ++43-316-389-3510 (3170) Fax ++43-316-389-3171 
--



___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Startup times to run Pd patch on Raspberry Pi

2020-10-06 Thread Yann Seznec
Thanks for all the thoughts and feedback. I should have said that my 60 second 
boot time is when I use the Pi headless, console-only, running the patch with 
-nogui. 

I’ll have a look at disabling some things as suggested, and I’ll report back if 
I make any significant progress! I imagine I’m not alone in this quest so I’ll 
try and document it somehow, or at least post it here for future generations.

I really like the look of piCore OS too. It seems like the right approach for 
me in the long run, though I am wary of jumping into a new system. Maybe 
eventually we can make our own pdCore OS :)



> On Oct 5, 2020, at 5:27 PM, Thomas Grill  wrote:
> 
> Hi all,
> i am a big fan of the piCore os. [1]
> That is a stripped down read-only linux distro with loadable modules for 
> alsa, pure data etc..
> Boot times are considerable shorter than with raspbian.
> Of course it also needs some dedication to get used with it.
> 
> I have compiled pd, jack and libfftw3 for piCore 11, to be found here:
> https://g.org/data/dev/picore/piCore-11/
> 
> best, Thomas
> 
> [1] http://tinycorelinux.net/11.x/armv6/releases/RPi/
> 
>> Am 05.10.2020 um 17:05 schrieb Martin Peach :
>> 
>> It takes about a minute for the pi to boot. There is not much you can
>> do about that.
>> 
>> Martiin
>> 
>> On Mon, Oct 5, 2020 at 11:03 AM Yann Seznec  wrote:
>>> 
>>> Hi everyone, long time reader first time writer.
>>> 
>>> I’m wondering what people’s experiences are with regards to the startup 
>>> time for running a patch on a raspberry pi.
>>> 
>>> For various reasons I’ve started to use Patchbox OS to auto-run my patches 
>>> on startup, which is very reliable and consistent however it usually takes 
>>> about 60 seconds from switching on to making sound. This is on various 
>>> models of Raspberry Pi 3.
>>> 
>>> Has anyone managed to speed this up? I haven’t tried the Raspi 4, perhaps 
>>> that is significantly faster?
>>> 
>>> Thanks,
>>> Yann
>>> 
>>> 
>>> ___
>>> Pd-list@lists.iem.at mailing list
>>> UNSUBSCRIBE and account-management -> 
>>> https://lists.puredata.info/listinfo/pd-list
>> 
>> 
>> 
>> ___
>> Pd-list@lists.iem.at mailing list
>> UNSUBSCRIBE and account-management -> 
>> https://lists.puredata.info/listinfo/pd-list
> 
> --
> Thomas Grill
> http://g.org
> 
> 




___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Startup times to run Pd patch on Raspberry Pi

2020-10-06 Thread Sebastian Lexer
Using various online suggestions found in forums and blogs on boot and setup 
adjustments I had managed to reduce a Raspian setup to boot headless and 
loading several instances of PD to run on a couple of reserved cores (using 
jack2) in about 23 seconds. Some of the obvious ones were purging any apps that 
would not be used as well as reducing the services. I think to remember that 
disabling networking made quite a difference as it avoids several ‘waiting’ 
loops, but obviously that restricts possible applications significantly and is 
therefore only useful if you are after a ’standalone’ audio setup.

I wish I would have kept a conclusive list what I had done and what worked, but 
as I had several quite severe fails in the process and I had tried that while 
being new to pi and linux, I ended up not quite having a complete overview of 
the final version and steps. I’m very interested in the piCore os, thanks 
Thomas for making compiles available for it!

Best,
Sebastian
On 5 Oct 2020, 22:29 +0100, Thomas Grill , wrote:
> Hi all,
> i am a big fan of the piCore os. [1]
> That is a stripped down read-only linux distro with loadable modules for 
> alsa, pure data etc..
> Boot times are considerable shorter than with raspbian.
> Of course it also needs some dedication to get used with it.
>
> I have compiled pd, jack and libfftw3 for piCore 11, to be found here:
> https://g.org/data/dev/picore/piCore-11/
>
> best, Thomas
>
> [1] http://tinycorelinux.net/11.x/armv6/releases/RPi/
>
> > Am 05.10.2020 um 17:05 schrieb Martin Peach :
> >
> > It takes about a minute for the pi to boot. There is not much you can
> > do about that.
> >
> > Martiin
> >
> > On Mon, Oct 5, 2020 at 11:03 AM Yann Seznec  wrote:
> > >
> > > Hi everyone, long time reader first time writer.
> > >
> > > I’m wondering what people’s experiences are with regards to the startup 
> > > time for running a patch on a raspberry pi.
> > >
> > > For various reasons I’ve started to use Patchbox OS to auto-run my 
> > > patches on startup, which is very reliable and consistent however it 
> > > usually takes about 60 seconds from switching on to making sound. This is 
> > > on various models of Raspberry Pi 3.
> > >
> > > Has anyone managed to speed this up? I haven’t tried the Raspi 4, perhaps 
> > > that is significantly faster?
> > >
> > > Thanks,
> > > Yann
> > >
> > >
> > > ___
> > > Pd-list@lists.iem.at mailing list
> > > UNSUBSCRIBE and account-management -> 
> > > https://lists.puredata.info/listinfo/pd-list
> >
> >
> >
> > ___
> > Pd-list@lists.iem.at mailing list
> > UNSUBSCRIBE and account-management -> 
> > https://lists.puredata.info/listinfo/pd-list
>
> --
> Thomas Grill
> http://g.org
>
>
>
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> https://lists.puredata.info/listinfo/pd-list
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Startup times to run Pd patch on Raspberry Pi

2020-10-05 Thread Thomas Grill
Hi all,
i am a big fan of the piCore os. [1]
That is a stripped down read-only linux distro with loadable modules for alsa, 
pure data etc..
Boot times are considerable shorter than with raspbian.
Of course it also needs some dedication to get used with it.

I have compiled pd, jack and libfftw3 for piCore 11, to be found here:
https://g.org/data/dev/picore/piCore-11/

best, Thomas

[1] http://tinycorelinux.net/11.x/armv6/releases/RPi/

> Am 05.10.2020 um 17:05 schrieb Martin Peach :
> 
> It takes about a minute for the pi to boot. There is not much you can
> do about that.
> 
> Martiin
> 
> On Mon, Oct 5, 2020 at 11:03 AM Yann Seznec  wrote:
>> 
>> Hi everyone, long time reader first time writer.
>> 
>> I’m wondering what people’s experiences are with regards to the startup time 
>> for running a patch on a raspberry pi.
>> 
>> For various reasons I’ve started to use Patchbox OS to auto-run my patches 
>> on startup, which is very reliable and consistent however it usually takes 
>> about 60 seconds from switching on to making sound. This is on various 
>> models of Raspberry Pi 3.
>> 
>> Has anyone managed to speed this up? I haven’t tried the Raspi 4, perhaps 
>> that is significantly faster?
>> 
>> Thanks,
>> Yann
>> 
>> 
>> ___
>> Pd-list@lists.iem.at mailing list
>> UNSUBSCRIBE and account-management -> 
>> https://lists.puredata.info/listinfo/pd-list
> 
> 
> 
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> https://lists.puredata.info/listinfo/pd-list

--
Thomas Grill
http://g.org




signature.asc
Description: Message signed with OpenPGP
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Startup times to run Pd patch on Raspberry Pi

2020-10-05 Thread Giulio Moro via Pd-list

Never used one, but you can try tweaking the "After" or "Requires" parameter in 
the systemd script. On Bela, this commit cut down the power-to-sound time from 18 to 10 seconds 
(and there's room for improvement):
https://github.com/BelaPlatform/bela-image-builder/commit/a85b82b526f3529523b9b67a706ff2cda47539c4#diff-606dc24f4e7da91386681db20c65038b

(note that the comments in modules.conf that I added in that commit shouldn't 
be there, because they actually make the whole line invalid!)


wolfgang spahn wrote:

Hi Yann,

to make the boot-up time shorter one can run the Raspberry Pi without Desktop 
and start PD without GUI from terminal, that saves a lot of CPU power, too.

Best!
Wolfgang


Am 05.10.20 um 16:08 schrieb Yann Seznec:

Hi everyone, long time reader first time writer.

I’m wondering what people’s experiences are with regards to the startup time 
for running a patch on a raspberry pi.

For various reasons I’ve started to use Patchbox OS to auto-run my patches on 
startup, which is very reliable and consistent however it usually takes about 
60 seconds from switching on to making sound. This is on various models of 
Raspberry Pi 3.

Has anyone managed to speed this up? I haven’t tried the Raspi 4, perhaps that 
is significantly faster?

Thanks,
Yann


___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list







___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Startup times to run Pd patch on Raspberry Pi

2020-10-05 Thread wolfgang spahn

Hi Yann,

to make the boot-up time shorter one can run the Raspberry Pi without 
Desktop and start PD without GUI from terminal, that saves a lot of CPU 
power, too.


Best!
Wolfgang


Am 05.10.20 um 16:08 schrieb Yann Seznec:

Hi everyone, long time reader first time writer.

I’m wondering what people’s experiences are with regards to the startup time 
for running a patch on a raspberry pi.

For various reasons I’ve started to use Patchbox OS to auto-run my patches on 
startup, which is very reliable and consistent however it usually takes about 
60 seconds from switching on to making sound. This is on various models of 
Raspberry Pi 3.

Has anyone managed to speed this up? I haven’t tried the Raspi 4, perhaps that 
is significantly faster?

Thanks,
Yann


___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list



--

wolfgang spahn___

kastanienalle 85_10435 berlin
__Atelier:__gerichtstrasse 12-13_13347 berlin
__030 39200060__ 0179 7935447
____





___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] Startup times to run Pd patch on Raspberry Pi

2020-10-05 Thread Martin Peach
It takes about a minute for the pi to boot. There is not much you can
do about that.

Martiin

On Mon, Oct 5, 2020 at 11:03 AM Yann Seznec  wrote:
>
> Hi everyone, long time reader first time writer.
>
> I’m wondering what people’s experiences are with regards to the startup time 
> for running a patch on a raspberry pi.
>
> For various reasons I’ve started to use Patchbox OS to auto-run my patches on 
> startup, which is very reliable and consistent however it usually takes about 
> 60 seconds from switching on to making sound. This is on various models of 
> Raspberry Pi 3.
>
> Has anyone managed to speed this up? I haven’t tried the Raspi 4, perhaps 
> that is significantly faster?
>
> Thanks,
> Yann
>
>
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> https://lists.puredata.info/listinfo/pd-list



___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


[PD] Startup times to run Pd patch on Raspberry Pi

2020-10-05 Thread Yann Seznec
Hi everyone, long time reader first time writer.

I’m wondering what people’s experiences are with regards to the startup time 
for running a patch on a raspberry pi.

For various reasons I’ve started to use Patchbox OS to auto-run my patches on 
startup, which is very reliable and consistent however it usually takes about 
60 seconds from switching on to making sound. This is on various models of 
Raspberry Pi 3. 

Has anyone managed to speed this up? I haven’t tried the Raspi 4, perhaps that 
is significantly faster?

Thanks,
Yann


___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


[PD] Startup times to run Pd patch on Raspberry Pi

2020-10-05 Thread Yann Seznec
Hi everyone, long time reader first time writer.

I’m wondering what people’s experiences are with regards to the startup time 
for running a patch on a raspberry pi.

For various reasons I’ve started to use Patchbox OS to auto-run my patches on 
startup, which is very reliable and consistent however it usually takes about 
60 seconds from switching on to making sound. This is on various models of 
Raspberry Pi 3. 

Has anyone managed to speed this up? I haven’t tried the Raspi 4, perhaps that 
is significantly faster?

Thanks,
Yann


___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list