In D46307#1057113, @dev_submerge.ch wrote:I suppose the original idea by @meka_tilda.center was to implement another example using mmap, at least there's code fragments for that. What's the plan regarding a mmap example?
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Feed Advanced Search
Advanced Search
Advanced Search
Wed, Oct 2
Wed, Oct 2
Sep 9 2024
Sep 9 2024
Aug 20 2024
Aug 20 2024
Apr 28 2024
Apr 28 2024
I had to remove dev/sound/unit.c optional sound from sys/conf/files but otherwise it works.
Apr 11 2024
Apr 11 2024
Works here, too. I did only the short test, but no EBUSY.
Jan 29 2024
Jan 29 2024
meka_tilda.center added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..
Interesting. I just tested, and if I boot my machine while interface is on, kld_list and buffer_ms together do the trick. I mean, jack_iodelay reports exactly same latency as if I loaded the module, set buffer_ms and then turned on the interface. Maybe my interface is slow to respond initially, so sysctl has time to kick in? Anyway, if I were to do it differently, what should I do? Load module and set buffer_ms in loader.conf?
Jan 28 2024
Jan 28 2024
meka_tilda.center added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..
A misunderstanding. I though you wanted me to make sure there are no reconnects. Anyway, loading the driver first, then setting buffer_ms and then turning on the interface yields the following results
period = 192 buffer_ms = 1 690.921 frames 14.394 ms total roundtrip latency extra loopback latency: 306 frames use 153 for the backend arguments -I and -O
Now this is a great improvement! Can we document it somewhere? Suggesting, for example, to put kld_list+=snd_uaudio and then set buffer_ms as any other sysctl? In my oppinion, if we spent so much time figuring out how to properly do the measurement, I'm sure other people will need help with their setup, too, so why not make it easier for them and put this into snd_uaudio(4).
Jan 27 2024
Jan 27 2024
meka_tilda.center added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..
I didn't answer about re-plugging. No, the interface is always connected and I don't touch the cables.
meka_tilda.center added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..
I see what you mean. I tested with buffer_ms of 1 and 8 and I get almost exact numbers:
period = 192
Jan 22 2024
Jan 22 2024
meka_tilda.center added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..
Main branch ----------- hw.usb.uaudio.buffer_ms = 8 period = 768 2563.934 frames 53.415 ms total roundtrip latency extra loopback latency: 1027 frames use 513 for the backend arguments -I and -O
Jan 21 2024
Jan 21 2024
meka_tilda.center added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..
I missed 4ms request from you, so here are those measurements
Main branch ----------- hw.usb.uaudio.buffer_ms = 4 period = 768 3337.952 frames 69.541 ms total roundtrip latency extra loopback latency: 1033 frames use 516 for the backend arguments -I and -O
meka_tilda.center added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..
Thank you for the explanation. I took the measurement and I tried to get the lowest latency without jitters, so here is the complete measurement.
Main branch ----------- hw.usb.uaudio.buffer_ms = 2
Jan 19 2024
Jan 19 2024
meka_tilda.center added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..
Sorry for the delay, I got sick (again). Anyway, it took me a while to figure out what's going on. As I didn't have speakers on, I didn't notice there are jitters, that's why the numbers don't match. I took similar measurements with higher period size in jack and these are the results
Main branch ----------- hw.usb.uaudio.buffer_ms = 2
Jan 17 2024
Jan 17 2024
Jan 16 2024
Jan 16 2024
An example
Ah, so, single argument with quotes. If broken into multiple lines with "\" it makes fwget's output weird, hence one huge line.
It would be better if addpkg supported multiple arguments, but with current implementation we have to use multiple invocations.
Jan 11 2024
Jan 11 2024
Jan 9 2024
Jan 9 2024
Dec 30 2023
Dec 30 2023
meka_tilda.center added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..
I ran jack_iodelay with same buffer_ms value and these are the results:
Florian's patch is superior to this one, hence closing.
Dec 26 2023
Dec 26 2023
meka_tilda.center added a comment to D41942: snd_uaudio(4): Adapt buffer length to buffer_ms tunable..
I finally found the time to test this patch. I'm running CURRENT and I only have Behringer XR18 at my disposal. First test I ran was lowering the buffer_ms to 1 and just playing audio for few hours. I didn't tweak virtual_oss parameters or anything, and audacious was using virtual_oss. Not a single jitter, glitch or xrun in those few hours, no audible defects of any kind. In the following days I intend to test the latency with jack_iodelay.
Aug 31 2023
Aug 31 2023
meka_tilda.center updated the diff for D41627: Lower minimal USB audio buffer size limit from 2ms to 1ms.
meka_tilda.center added a comment to D41627: Lower minimal USB audio buffer size limit from 2ms to 1ms.
In D41627#949637, @mav wrote:I am sorry, but once again: in this patch you change allowed minimum, but do not change the default on line 99, right?
I guess heat got to my head :) Thank you, good catch! Update is coming.
meka_tilda.center added a comment to D41627: Lower minimal USB audio buffer size limit from 2ms to 1ms.
In D41627#949189, @mav wrote:After your initial commit Hans reduced the default value from 8ms to the minimum of 2ms. I wonder if it is still OK or you'd like to reduce default also.
As a disclaimer, I know very little to nothing about USB.
Aug 29 2023
Aug 29 2023
meka_tilda.center retitled D36795: Example of audio/MIDI with select(2), poll(2) and kqueue(2) from Example of audio/MIDI with select(2) and poll(2) to Example of audio/MIDI with select(2), poll(2) and kqueue(2).
meka_tilda.center retitled D41627: Lower minimal USB audio buffer size limit from 2ms to 1ms from Lower USB audio buffer size from 2ms to 1ms to Lower minimal USB audio buffer size limit from 2ms to 1ms.
meka_tilda.center requested review of D41627: Lower minimal USB audio buffer size limit from 2ms to 1ms.
Jul 6 2023
Jul 6 2023
If you're going to change format, why not use tree, as it feels natural for sysctl. One existing example would be dev.pcm.<number> so following that, we could have security.mac.ipacl.<jid>.<rule> and .family and .address (or maybe .range) as leafs. It is not set in stone that it has to be like that, but given it's sysctl, it feels more natural to me, so please give it a thought. Also, as it is about jail, it would also feel more natural to have this tunables under security.jail.<jid>
Jul 4 2023
Jul 4 2023
This patch fails to apply to CURRENT. I am using dhcpcd-10 since it was released (and used previous versions) for DHCP, SLAAC and DHCPv6, all on the same network. That's the closest to testing I can get in current state. If this patch is updated I would love to test it. Of course, if updating patch is required, I would love to do it, but at this point I'm not sure I know how.
Jul 3 2023
Jul 3 2023
Is there something we can do to make dhcpcd part of 14.0-RELEASE besides testing this patch?
Jun 19 2023
Jun 19 2023
Jun 17 2023
Jun 17 2023
meka_tilda.center updated the diff for D36795: Example of audio/MIDI with select(2), poll(2) and kqueue(2).
Added kqueue/kevent example and made the choice of select/poll/kqueue selectable on runtime.
Jun 7 2023
Jun 7 2023
meka_tilda.center added a comment to D36795: Example of audio/MIDI with select(2), poll(2) and kqueue(2).
The poll(2) part is added
meka_tilda.center updated the diff for D36795: Example of audio/MIDI with select(2), poll(2) and kqueue(2).
May 21 2023
May 21 2023
I you use git format-patch -1 -U9999 and apply it with git am <patch>, you get the whole commit with the message. Not strictly needed, but makes life easier.
May 12 2023
May 12 2023
Add FILES section to jail(8) and add -F option to usage() function.
May 10 2023
May 10 2023
May 5 2023
May 5 2023
Mar 21 2023
Mar 21 2023
Save original value of cfname and restore it after handling glob config.
Thank you for detailed review. I omitted the change for the style, as almost all of them were already present before my change, like not having {} on if. I personally don't have preferences for style so I'll do whatever maintainer thinks is right. I would like to keep style changes out of this patch, if possible.
Mar 20 2023
Mar 20 2023
Mar 15 2023
Mar 15 2023
Mar 10 2023
Mar 10 2023
Sort the includes.
Mar 1 2023
Mar 1 2023
In D38826#884016, @jlduran_gmail.com wrote:I like the overall idea, thank you for adding more conf.ds to FreeBSD!
Something I do not understand: My "dormant", cron-initiated jails will always start upon boot (i.e., /etc/jail.anotherjail.conf, while anotherjail not in jail_list)?
Regarding the code itself, wouldn't it be better to create a function, something like:
all_jail_confs() { local jail_conf_locations jail_conf_locations="$jail_conf $jail_conf_dir/*.conf /etc/jail.*.conf" if [ -f "$1" ]; then jail_conf_locations="$1 $jail_conf_locations" fi cat $jail_conf_locations 2>/dev/null }And use it instead of repeating the same code in 5 places?
Nov 21 2022
Nov 21 2022
meka_tilda.center retitled D37431: Fix ipfw/dnctl detection from Fix ipfw/dnctl detection and add dnctl rc.d service to Fix ipfw/dnctl detection.
Nov 20 2022
Nov 20 2022
meka_tilda.center added a comment to D36795: Example of audio/MIDI with select(2), poll(2) and kqueue(2).
I think that would not be the simplest example, and I was aiming at simplicity. My idea with audio, MIDI and combined example was to make it as simple as possible. Next examples are going to be harder topics: handling 24bit audio in different endianess, ability to choose between select, poll and kqueue and combining it all into one big example at the end. That being said, can we keep this example as is?
Nov 19 2022
Nov 19 2022
Nov 18 2022
Nov 18 2022
Sep 29 2022
Sep 29 2022
meka_tilda.center requested review of D36795: Example of audio/MIDI with select(2), poll(2) and kqueue(2).
Aug 17 2022
Aug 17 2022
I did a little research and it turns out that SIOCSPFXFLUSH_IN6 is only supported on FreeBSD and derivatives like DragonflyBSD so the check if it's defined is practically check if it's running on FreeBSD. As NetBSD removed it and OpenBSD doesn't have it, what will happen if we remove the SIOCSPFXFLUSH_IN6 call from dhcpcd?
As nd6.c states /* flush all the prefix advertised by routers */ and route that dhcpcd removes is definetely not advertized by any router but set as part of ifconfig re0 inet6 ...., maybe the bug is on FreeBSD side?
Aug 16 2022
Aug 16 2022
Please note there's a bug in dhcpcd and/or FreeBSD: https://github.com/NetworkConfiguration/dhcpcd/pull/121. Could somebody more experienced with networking take a look, please? In short, without the mentioned PR, dhcpcd removes IPv6 routes from bridge0 interface while re0 is being configured. Thank you!
In D36195#822271, @pstef wrote:I think it's just a matter of you saying how you want to be referred to in the author field of the git commit :) But I think it requires a "name <email>" format.
I though "git format-patch" will do the right thing here. But anway "Goran Mekić <meka@tilda.center>" is prefered.
As for formatting, this is the output that indent(1) produced. Can you tell me what would make it better?
To be honest I don't know how the process works. Can you advise, please?
Aug 14 2022
Aug 14 2022
Jun 26 2021
Jun 26 2021
Is there anything I can improve? Did I miss something?
Jun 1 2021
Jun 1 2021
Licence and install fixed
May 23 2021
May 23 2021
My apologies, I missinterpreted the "inline" part.
Make internal functions static
I fixed all from previous comments, except printf formating. I tried to mimic pf.c: https://cgit.freebsd.org/src/tree/sys/netpfil/pf/pf.c#n646 where arguments are on the next line 4 spaces indented to the right relative to start of function name. I also read style(9) one more time and I can't find what I did wrong, so if it's still wrong, please advise.
May 6 2021
May 6 2021
I didn't even know indent exists. Thank you!
May 5 2021
May 5 2021
Nitpicking is good, it keeps docs perfect.
May 4 2021
May 4 2021
As only one object from nvlist is explained, I decided to go with "an nvlist object".
May 2 2021
May 2 2021
Update the patch with suggestions by Ka Ho Ng. Sorry it took so much time (vaccine problems), and forgive me if I do something wrong on reviews as it is the first time I'm using it.
Apr 28 2021
Apr 28 2021
Jun 18 2020
Jun 18 2020
Yes, it's still relevant. I'm very slow at progress on PF+Dummynet integration, but I am working on it, and dummynet not depending on IPFW is essential.
Aug 20 2019
Aug 20 2019
meka_tilda.center edited reviewers for D21336: Make dummynet kernel module independent from IPFW, added: thj; removed: tj.