#
…

2023-12-23

00:04zumi_ has joined #asahi
00:05zumi has quit [Remote host closed the connection]
00:09zumi_ is now known as zumi
00:36jeisom has quit [Ping timeout: 480 seconds]
00:53kidplayer666 has quit [Quit: Connection closed for inactivity]
00:55crabbedhaloablut has quit []
01:16chadmed has quit [Ping timeout: 480 seconds]
01:19Brainium has quit [Quit: Konversation terminated!]
01:46possiblemeatball has joined #asahi
02:03matteo has joined #asahi
02:17matteo has quit [Ping timeout: 480 seconds]
02:20Emantor has quit [Quit: ZNC - http://znc.in]
02:21Emantor has joined #asahi
03:01chadmed has joined #asahi
03:04shiggitay has quit [Ping timeout: 480 seconds]
03:21ydalton has quit [Ping timeout: 480 seconds]
03:48gspbirel56 is now known as Guest11526
03:48gspbirel56 has joined #asahi
03:49chadmed has quit [Ping timeout: 480 seconds]
03:53Guest11526 has quit [Ping timeout: 480 seconds]
04:07gspbirel56 has quit [Quit: Ping timeout (120 seconds)]
04:08gspbirel56 has joined #asahi
04:16JayBeeFOSS has quit [Remote host closed the connection]
04:17JayBeeFOSS has joined #asahi
04:30marvin24_ has joined #asahi
04:33marvin24 has quit [Ping timeout: 480 seconds]
04:37millenialhacker has joined #asahi
04:40chadmed has joined #asahi
04:45millenialhacker has quit [Ping timeout: 480 seconds]
04:51ptudor_ has quit [Ping timeout: 480 seconds]
04:57DevEthann has joined #asahi
04:59DevEthann has quit [Remote host closed the connection]
05:00gspbirel56 has quit [Quit: Ping timeout (120 seconds)]
05:01gspbirel56 has joined #asahi
05:09gspbirel56 has quit [Quit: Ping timeout (120 seconds)]
05:09gspbirel56 has joined #asahi
05:16possiblemeatball has quit [Quit: Quit]
05:29possiblemeatball has joined #asahi
05:30possiblemeatball has quit []
05:51matteo has joined #asahi
05:59matteo has quit [Ping timeout: 480 seconds]
06:04zumi_ has joined #asahi
06:04zumi has quit [Remote host closed the connection]
06:09zumi_ is now known as zumi
06:40matteo has joined #asahi
06:43AnuthaDev has joined #asahi
06:48matteo has quit [Ping timeout: 480 seconds]
06:51millenialhacker has joined #asahi
06:59millenialhacker has quit [Ping timeout: 480 seconds]
07:04chadmed has quit [Ping timeout: 480 seconds]
07:13eiln has joined #asahi
07:31chadmed has joined #asahi
07:33gspbirel56 has quit [Quit: Ping timeout (120 seconds)]
07:33gspbirel56 has joined #asahi
07:41pdyq has joined #asahi
07:41pdyq has quit []
07:43crabbedhaloablut has joined #asahi
08:16i509vcb has quit [Quit: Connection closed for inactivity]
08:27eroc1990 has joined #asahi
08:34holiday has joined #asahi
08:43pitustmarcan: "ALSA routes are probably wrong" how should they be configured? also, "aplay output.wav -D 'sysdefault:CARD=AppleJ293'" doesn't produce any audio either (not sure if that's the correct scenario or not)
08:55slewsys has joined #asahi
08:57millenialhacker has joined #asahi
08:58kidplayer666 has joined #asahi
09:12millenialhacker has quit [Ping timeout: 480 seconds]
09:19matteo has joined #asahi
09:27matteo has quit [Ping timeout: 480 seconds]
09:33pitusti got about one second of audio, then i ^C'ed aplay, and now no more audio happens
10:08mikee30008 has quit [Quit: The Lounge - https://thelounge.chat]
10:09mikee30008 has joined #asahi
10:20eiln has quit [Quit: WeeChat 4.1.2]
10:29axt has joined #asahi
11:00holiday has quit [Quit: WeeChat 4.1.2]
11:35Moprius has joined #asahi
11:37millenialhacker has joined #asahi
11:37kidplayer666 has quit [Quit: Connection closed for inactivity]
11:38matteo has joined #asahi
11:43Brainium has joined #asahi
11:44jeisom has joined #asahi
11:45millenialhacker has quit [Ping timeout: 480 seconds]
11:49Moprius has quit [Quit: bye]
11:49matteo has quit [Remote host closed the connection]
12:02zumi_ has joined #asahi
12:02zumi has quit [Remote host closed the connection]
12:07zumi_ is now known as zumi
12:07gladiac has quit [Quit: Ping timeout (120 seconds)]
12:08gladiac has joined #asahi
12:09kidplayer666 has joined #asahi
12:11kidplayer666can anyone explain why is there apparently so much on cache instead of on ram??
12:15PaulFertserkidplayer666: normally Linux uses ~all free RAM for caching access to block devices because why not. Caches can always be dropped right away when RAM is needed.
12:15kidplayer666How do I do it
12:15kidplayer666Because I do not have enough ram
12:15PaulFertserCaches are dropped automatically, no need to worry about it.
12:28millenialhacker has joined #asahi
12:29svenlooks like at some point you ran something that required much more than 8 gb ram though because your swap is full
12:32axt has left #asahi [#asahi]
12:36millenialhacker has quit [Ping timeout: 480 seconds]
12:39kidplayer666sven: well yeah, but it’s really weird
12:40kidplayer666(I was running slp microvm and trying to run Hearts of Iron IV)
12:40Nefsen402Moving the swap back into ram when all of it is not being accessed doesn't make sense. It will consume power for no reason and just means it needs to go back into swap when something starts running again
12:41chaos_princessif you want to manually kick everything out of swap, just do swapoff/swapon on the swap device
12:43axt has joined #asahi
12:43Nefsen402what does the kernel do if you turn of swap and there isn't enough physical ram space for the swap? Does the oom killer go ham?
12:46Nefsen402but also oof a modern machine with 8gb of ram
12:47kidplayer666(It made eventually my computer crash, due to lack of ram the first time I tried)
12:47kidplayer666(Second time it didn’t allow me to click on the button of some announcement)
12:47kidplayer666Nefsen402: I did not choose it
12:48Nefsen402more of a criticism to apple
12:49Nefsen402supprised they aren't marketing a 8gb machine with 8gb of swap as a 16gb machine yet
12:49kidplayer666Nefsen402: don’t give them ideas
12:50kidplayer666“You can download more ram”
12:55AnuthaDev_ has joined #asahi
13:00jannegNefsen402: aren't they already? "A Mac with 8GB is like a PC with 16GB of r
13:00thelounge986 has quit [Quit: Ping timeout (120 seconds)]
13:00thelounge986 has joined #asahi
13:01AnuthaDev has quit [Ping timeout: 480 seconds]
13:02PaulFertserkidplayer666: why do you have so many VM processes though?
13:02kidplayer666I don’t know
13:03kidplayer666I should just have steam and HOI open
13:04PaulFertserI suggest when you're low on RAM you make (h)top sort by memory (not CPU) and then kill whatever you do not know what you need for :)
13:04j`eyone per VCPU
13:04j`eyseems like 8 threads, 8 cpus?
13:04kidplayer666PaulFertser: I’ll try that
13:04kidplayer666But there’s a chance I’ll kill some crucial processes :P
13:05ydalton has joined #asahi
13:06PaulFertserHas anyone tried doing AP+STA on same phy, does it work for you? Or connecting in STA mode to two APs on different channels at the same time?
13:06axtjanneg: but websites are not smaller either.
13:07kidplayer666And sorting by ram would probably be all Krun microvms
13:08PaulFertserkidplayer666: and how exactly do you tell you "do not have enough ram"?
13:09kidplayer666PaulFertser: lots of swap, and everything grinds to a halt
13:09kidplayer666And I need to force a restart
13:09PaulFertserkidplayer666: sorting by RAM should allow you to see what's in swap and why.
13:10AnuthaDev_ has quit []
13:10PaulFertserkidplayer666: if you're using a web browser without noscript and have many tabs chances are the damn scripts will fill all the RAM eventually, no matter how much you got.
13:11Nefsen402kidplayer666: Is it real swap or compressed zram?
13:12kidplayer666PaulFertser: all I had was the microvm
13:14AnuthaDev has joined #asahi
13:14xihuanni has joined #asahi
13:14kujeger has quit [Ping timeout: 480 seconds]
13:15xihuannihello everybody
13:22kujeger has joined #asahi
13:24xihuanni has left #asahi [Leaving]
13:25jiaobaobao has joined #asahi
13:42jiaobaobao has quit [Quit: Leaving]
13:42SalimTer- has joined #asahi
13:46SalimTerryLi has quit [Ping timeout: 480 seconds]
14:00jeisom has quit [Quit: Leaving]
14:01jeisom has joined #asahi
14:02gspbirel56 has quit [Quit: Ping timeout (120 seconds)]
14:02eroc1990 has quit [Quit: Ping timeout (120 seconds)]
14:02gspbirel56 has joined #asahi
14:02eroc1990 has joined #asahi
14:03ydalton has quit [Remote host closed the connection]
14:03ydalton has joined #asahi
14:04pitusti think updating to
14:04pitustmesa-asahi 20231213 broke firefox
14:04pitustill have to downgrade most likely
14:08millenialhacker has joined #asahi
14:11jacksonchen666 has quit [Quit: WeeChat 4.1.2]
14:16millenialhacker has quit [Ping timeout: 480 seconds]
14:25matteo has joined #asahi
14:32lovejiao has joined #asahi
14:33matteo has quit [Ping timeout: 480 seconds]
14:35lovejiao has quit [Remote host closed the connection]
14:36lonjil2 has quit []
14:49lovejiao has joined #asahi
14:57lovejiao has quit [Ping timeout: 480 seconds]
14:58matteo has joined #asahi
15:05kidplayer666Nefsen402: no idea
15:05Nefsen402cat /proc/swaps
15:06Nefsen402if it says something under /dev/zram then you should probably configure real swap
15:06kidplayer666I dunno why the installer did not suggest it
15:06matteo has quit [Ping timeout: 480 seconds]
15:06kidplayer666I’ll configure at least 16GB
15:07ydalton has quit [Remote host closed the connection]
15:07ydalton has joined #asahi
15:10possiblemeatball has joined #asahi
15:10lovejiao has joined #asahi
15:13kidplayer666Nefsen402: what is the difference though?
15:14Nefsen402zram is a virtual swapfile that is backed by ram through a compression algorithm
15:15Nefsen402It's not actually using your disk
15:15Nefsen402Much of the "need to force restart" scenarios would probably evaporate with a bit of actual swap
15:15kidplayer666Jesus christ
15:15kidplayer666That probably explains it all…
15:16kidplayer666I thought it was going to like a file on disk
15:16Brainium has quit [Quit: Konversation terminated!]
15:16matteo has joined #asahi
15:16Nefsen402my install came with a 8gb zram swap
15:16Nefsen402But I have a 32gb machine so it's fine
15:17lovejiao has quit [Remote host closed the connection]
15:17kidplayer666I think it could suggest some swap
15:17Nefsen402definitely
15:17kidplayer666If you got 16GB or 8
15:17kidplayer666It could say “hey, I noticed you don’t have a lot of ram, a bit of swap will make for a better experience
15:18Nefsen402configuring a swap is like two commands and you can disable it later or give it more
15:18kidplayer666I just used Gparted
15:18Nefsen402I would probably do a swapfile
15:18Nefsen402donno if there's anything special you need to do with btrfs
15:18Nefsen402I think in the past btrfs didn't support swapfiles but it does now
15:18kidplayer666Swap partition always works
15:19kidplayer666And not like resizing is hard
15:19kidplayer666And now it’s much better
15:19kidplayer666Nefsen402: thanks
15:21kidplayer666Now it actually runs
15:22Nefsen402you need to put your swap partition under /etc/fstab so that it's persistent to the next boot
15:23Nefsen402the swapon advice online is horrible. Just configure /etc/fstab and run mount -a
15:24matteo has quit [Ping timeout: 480 seconds]
15:27kidplayer666Nefsen402: I rebooted and it assumed the swap automatically
15:28kidplayer666Went from 7.28 GB zram to 7.28 zram + 16GB of swap
15:29kidplayer666That also explains the low ram usage
15:29kidplayer666As everything else was just zram
15:42PaulFertserSo is having zram by default recommended now to all SSD users?
15:54gspbirel56 has quit [Quit: Ping timeout (120 seconds)]
15:54gladiac is now known as Guest11593
15:54gladiac has joined #asahi
15:55gspbirel56 has joined #asahi
16:00Guest11593 has quit [Ping timeout: 480 seconds]
16:10millenialhacker has joined #asahi
16:15PaulFertserIs this a general rule, any laptop and desktop is supposed to work better with zram swap provided some (what exactly?) conditions are met?
16:15kidplayer666also, anyone else with the problem on slp's microvm while trying to game of the cursor being away by a consistent margin from the thing being cursed?
16:15kidplayer666and glad to see the implementation of hybernation
16:16kidplayer666wait, button is here but it is brokem
16:18millenialhacker has quit [Ping timeout: 480 seconds]
16:44arPaulFertser: this doesn't apply to every usecase, but for me, where i occasionally do compile stuff "heavy" on my laptop, zramSwap makes the difference between compiles finishing with no hiccups, and occasionaly making the oom-killer angry
16:45PaulFertserar: how about having normal swap there instead, is that ends up being slower?
16:46arPaulFertser: yup. that just makes things halt to a crawl
16:48vLily92 has joined #asahi
16:48vLily92 has quit [Remote host closed the connection]
16:49PaulFertserInteresting. When I was experimenting with zram on a 512 MiB machine (old Tegra2-based laptop) or on a 32 MiB wifi router I couldn't find any meaningful combination of settings for it to be useful. What really helped with that laptop was normal swap and setting swappiness to 90 (so that it wouldn't start swapping until almost no free RAM left).
16:50vLily92 has joined #asahi
16:50vLily92 has quit [Remote host closed the connection]
16:50vLily97 has joined #asahi
16:50vLily97 has quit [Remote host closed the connection]
16:51ydalton has quit [Remote host closed the connection]
16:51vLily94 has joined #asahi
16:51vLily94 has quit [Remote host closed the connection]
16:55arPaulFertser: swappiness takes a value between 0 and 200, and higher values make the kernel *more* eager to swap things out
16:58PaulFertserar: indeed, I checked my notes, I had vm.swappiness=10
16:58PaulFertser(default being 60)
16:59PaulFertserI'm just surprised people are using zram without opting in to it.
17:10j`eykidplayer666: newer installs automatically add swap
17:10j`eyfor 8-16G machines
17:11kidplayer666That makes a lot of sense
17:12j`eyI linked the script it runs here, it runs on firstboot
17:18possiblemeatball1 has joined #asahi
17:18possiblemeatball has quit [Read error: Connection reset by peer]
17:23axt has left #asahi [#asahi]
17:27marcanpitust: I'm talking about the routes in alsamixer, but please just use pipewire. the speakers are not designed to be driven directly like that, they need DSP to work properly.
17:29marcankidplayer666: magenta is not cache, it's shared memory which, if you don't have massive stuff in tmpfs, usually means GPU memory.
17:29marcanhowever I think in your case it might be zram backing too, not sure how that works
17:30kidplayer666Now that I added proper swap, it works perfectly
17:30kidplayer666Much higher ram usage
17:30kidplayer666So it really was that I think
17:30marcanwe do enable proper swap in fedora by default these days, so yeah
17:34kidplayer666It wasn’t even that long ago lol
17:34kidplayer666I had to reinstall once in November maybe?
17:36marcanswap was added literally the day before release ;)
17:37Nefsen402Can zram compress memory reserved for the GPU?
17:37Moprius has joined #asahi
17:37marcanno(t yet)
17:37marcanwe don't have swapper support for the GPU yet so it all stays pinned in memory
17:38Nefsen402I was thinking it was a hard no, but that's really interesting that it's possible!
17:38marcanit is, but it involves essentially (potentially) swapping out whole apps at once
17:38marcanif an app has to render anything 100% of its GPU memory needs to be available
17:39Nefsen402That's probably fine when my app is suspended in another workspace and not getting any frame callbacks
17:39marcanso it's useful for whole processes/contexts stay idle, not for idle memory within a process
17:40Nefsen402Unfortunately compositors upload shm textures themselves, it can't suspend shm based apps with this approach
17:41marcanwhat do you mean?
17:41Nefsen402Foot is an example of a popular shm based terminal emulator, would compress really nicely
17:41Nefsen402Wayland can either work by apps passing fds representing dmabufs
17:41Nefsen402or fds representing shared memory
17:42Nefsen402that shared memory has to be "uploaded" to the gl implementation so that it has a GLTexture to texture from
17:42Nefsen402and that upload is done in the compositor
17:42marcanif the shared memory is not GPU memory to begin with, then it needs to be copied into GPU memory
17:43marcanso at that point it's irrelevant and the original shared memory is normally swappable
17:43marcaneither way sharing memory is not an issue, you don't actually swap out whole apps. what I mean is that apps are either suspended (some memory swapped out) or not (no memory swapped out).
17:44marcanif there is any shared memory then that wouldn't be swapped out if someone who needs it has it mapped
17:44marcanthe point is just that the moment there is GPU work for that app/context, all of it has to be swapped back in
17:45Nefsen402Right. I was thinking of the case where it would be possible to compress the apps swapchain that it shares with the compositor
17:45marcanin that case no, but if the compositor is actively using it then you wouldn't be able to compress it anyway
17:45marcanthe compositor needs access to the primary framebuffers of everything it's compositing
17:46Nefsen402Of course, but sometimes it will allocate a texture for something, but not actually texture from it
17:46Nefsen402aps that were previously visible but then go suspended is an example
17:46marcanright, in that case it still counts of course, as long as those textures are mapped
17:47marcanwould need code in the compositor to proactively garbage-collect unused textures out of actual GPU memory to improve that, but I doubt it would be very useful
17:47Nefsen402Yeah, but that isn't possible rn without a wayland protocol
17:47marcanpossible in principle though, particularly with vulkan
17:48marcanwhy would you need a protocol? just have the compositor unmap textures it's not using
17:48Nefsen402But then what happens when the compositor wants the texture again?
17:48marcanit maps it again
17:48Nefsen402But compositors don't have access to the original shm fd
17:48marcanthey don't need it
17:48marcanthey still have a handle to the texture
17:48marcanwhat matters is whether it is *actually mapped in*
17:49marcanAIUI this is all explicit in Vulkan
17:49marcanin GL yeah, you'd have to keep around shm fds as backing or something
17:49Nefsen402yes, I was thinking GL
17:50Nefsen402Compositors like wlroots will actually release shm textures straight back to the compositor once it uploads it to the render impl
17:50Nefsen402This means that it's possible that an app can just pass back the same shm and not have a swapchain at all or even double buffering
17:51Nefsen402So in the GL world it can't just map it back by creating a new texture
17:51Nefsen402I don't know enough about vulkan to say anything
17:51marcanYou could just hang onto the fd
17:51marcanit's not exclusive
17:51marcan(just dup it)
17:51Nefsen402the fd might have garbage next time
17:51marcanthen your texture would have garbage too
17:51marcanit's the same memory
17:52Nefsen402The gl impl cannot import a shm without a copy
17:52marcanyes it can
17:52marcanwell a dmabuf
17:52Nefsen402dmabuf yes, that's how it currently works
17:52Nefsen402that's why I specifically chose the word "import"
17:52marcansure, but then you can just export your own texture as a dmabuf
17:52marcanafter the copy
17:52marcanand hang onto that new dmabuf fd
17:53marcanpoint being that GPU buffers can exist outside of GL textures, and that in principle allows them to be swapped out when the compositor is otherwise still rendering
17:53Nefsen402gl gives you no way of creating a dmabuf. You have GBM for that and with GBM you need a copy
17:54Nefsen402vulkan it's technically possible to get a dmabuf but only if you have compatibility and love hacks or so I've heard
17:54Nefsen402s/have/hate
17:55Nefsen402everything is moving to vulkan anyway
17:55marcanEGL_MESA_image_dma_buf_export
17:55Nefsen402oh! Didn't know that one existed
17:56marcaneither way if you're going this far you might as well use vulkan, but yes, in principle it's possible with GL
17:56Nefsen402I might go this far
17:57Nefsen402Probably unmergable though
17:57Nefsen402(into wlroots)
17:59ten157237743246 has joined #asahi
18:05zumi_ has joined #asahi
18:05zumi has quit [Remote host closed the connection]
18:06ten157237743246 has quit [Quit: The Lounge - https://thelounge.chat]
18:09possiblemeatball1 has quit [Quit: Quit]
18:09zumi_ is now known as zumi
18:11ten157237743246 has joined #asahi
18:16ten157237743246 has quit []
18:26possiblemeatball has joined #asahi
18:26possiblemeatball has quit []
18:34Brainium has joined #asahi
18:40AnuthaDev has quit []
18:41matteo has joined #asahi
18:57ptudor has joined #asahi
19:08zalyx has quit [Quit: later alligator]
19:10matteo has quit [Remote host closed the connection]
19:10zalyx has joined #asahi
19:13possiblemeatball has joined #asahi
19:13millenialhacker has joined #asahi
19:14matteo has joined #asahi
19:22millenialhacker has quit [Ping timeout: 480 seconds]
19:22matteo has quit [Ping timeout: 480 seconds]
19:30matteo has joined #asahi
19:35florolfi'm running an alarm installation and would like to continue doing so. with the fedora remix becoming the main priority, the messaging has been a bit unclear (or at least i wasn't able to find any information about this) - i'm aware that alarm is not really recommended/supported anymore, but what does that mean exactly? e.g. are there plans to shut down the jobs that build packages like linux-asahi at some
19:40lovejiao has joined #asahi
19:45lovejiao has quit [Remote host closed the connection]
19:53matteo has quit [Remote host closed the connection]
19:53matteo has joined #asahi
20:49matteo has quit [Remote host closed the connection]
20:49matteo has joined #asahi
20:49matteo has quit [Remote host closed the connection]
20:50matteo has joined #asahi
21:04matteo has quit [Ping timeout: 480 seconds]
21:08matteo has joined #asahi
21:12gspbirel56 has quit [Quit: Ping timeout (120 seconds)]
21:13gspbirel56 has joined #asahi
21:47larsjel is now known as lucus
21:55axt has joined #asahi
22:06millenialhacker has joined #asahi
22:06pitustmarcan: i have pipewire. "just use pipewire" doesn't help much when pipewire doesn't see the speakers
22:13Moprius_ has joined #asahi
22:14millenialhacker has quit [Ping timeout: 480 seconds]
22:18Moprius has quit [Ping timeout: 480 seconds]
22:19Brainium has quit [Ping timeout: 480 seconds]
22:20gspbirel56 has quit [Quit: Ping timeout (120 seconds)]
22:21gspbirel56 has joined #asahi
22:27matteo has quit [Ping timeout: 480 seconds]
22:50matteo has joined #asahi
22:58matteo has quit [Ping timeout: 480 seconds]
23:06matteo has joined #asahi
23:10gspbirel56 has quit [Quit: Ping timeout (120 seconds)]
23:10i509vcb has joined #asahi
23:10gspbirel56 has joined #asahi
23:30matteo has quit [Ping timeout: 480 seconds]
23:33kurtgz has joined #asahi
23:34kurtgzHello. What's the recommended model (in terms of best support/compatibility) of MacBook to get for Asahi?
23:39matteo has joined #asahi
23:45Brainium has joined #asahi
23:47j`eykurtgz: the m1/m2 options are all pretty much the same compat wise
23:47j`eym1 without the touchbar is better
23:47j`eythe laptops with physical hdmi have external screen support already
23:47matteo has quit [Ping timeout: 480 seconds]
23:48kurtgzThank you, yes, I was looking at M1 mostly, just because price would be more affordable for me (but still from what I see there's not much difference)
23:52matteo has joined #asahi
23:53kidplayer666j`ey: I mean, the touchbar now works :P. And whenever tiny dfr 0.2 gets packaged you’ll even be able to customise it
23:55j`eykidplayer666: yeah true, still think its better to avoid it :P
23:56kurtgzokay, would you even consider Air with 16GB of RAM? I have beefy workstation for my other stuff that needs horsepower, but I need something on the go. Most of the consumer laptops are just meh, so looking for some affordable M1 that I can put Asahi on…
23:57j`eykurtgz: yeah, that would be a good machine
23:57j`eyfor casual.. and even some non casual stuff
…