Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Safety of overriding USE=-wayland on a per-package basis
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
lars_the_bear
Guru
Guru


Joined: 05 Jun 2024
Posts: 516

PostPosted: Sat Sep 14, 2024 2:51 pm    Post subject: Reply with quote

wanne32 wrote:
And then you are using X11 which uses magnitudes more Memory than wayland?


That's irrelevant, since the hardware I'm using in this case doesn't support Wayland. There isn't a choice to be made.

I'll pass over all your comments about how stupid I am. I'm no Einstein, but I suspect I'm not half so stupid as you make me out to be.

BR, Lars.
Back to top
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 489

PostPosted: Sat Sep 14, 2024 3:17 pm    Post subject: Reply with quote

lars_the_bear wrote:
That's irrelevant, since the hardware I'm using in this case doesn't support Wayland.


Which hardware is it?
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3414
Location: Canada

PostPosted: Sat Sep 14, 2024 3:30 pm    Post subject: Reply with quote

wanne32 wrote:
[

X11-Servers are programs that turn abstract descriptions like triangles or lines into instructions for your specific GPU-Driver how to print the these. So a program that is written for X11 can displayed everywhere where a X11-Server is running and only the X11 has to be changed to be compatible with new drivers. This is utterly inefficient in a world where everybody works with stupid pixel-images. Modern day software does not do that. QT or gtk just asks the X11 server how to send images to the driver directly and and will go this short route and only fall back to the old ways if this does not work since they are not created to generate abstract descriptions they will be horribly inefficient in doing that. This direct method is called DRM. This eliminates the advantage of X11: kwin had for long times more or less completely different codes for nvidia and intel cards.


That's all good when display is local. It is a mobile phone model.
Back to top
View user's profile Send private message
lars_the_bear
Guru
Guru


Joined: 05 Jun 2024
Posts: 516

PostPosted: Sat Sep 14, 2024 6:33 pm    Post subject: Reply with quote

sMueggli wrote:
lars_the_bear wrote:
That's irrelevant, since the hardware I'm using in this case doesn't support Wayland.


Which hardware is it?


It's whatever integrated graphics thingie my 2013 Lenovo laptop has. I could find out, but it's never worked with Wayland, with any Linux distribution. Dual monitor support never worked, and many applications that were supposed to show video just showed a black window. Or crashed.

BR, Lars.
Back to top
View user's profile Send private message
eschwartz
Developer
Developer


Joined: 29 Oct 2023
Posts: 214

PostPosted: Sun Sep 15, 2024 1:28 am    Post subject: Reply with quote

lars_the_bear wrote:
eschwartz wrote:

We are finally field testing variants support. The MVP includes a no-pulseaudio variant build. If all goes well, tomorrow will include a no-wayland variant build. A no-wayland variant was always one of the things relatively close to the top of my mind. :)


Thank you; this is excellent news. Even if the implications of adding Wayland or Pulse support to applications are minimal, it's got to be cleaner to avoid doing so. Especially if you're trying to run KiCAD on a system with 8Gb RAM.

BR, Lars.


Non-wayland variant: https://gitweb.gentoo.org/proj/binhost.git/commit/?id=b83da5f98c0f4d43d290e65a634fdaad75820c99

Together with other changes, diff to Packages index:
Code:
-PACKAGES: 5070
+PACKAGES: 5136
 PROFILE: default/linux/amd64/17.0/hardened
-REPO_REVISIONS: {"gentoo": "41390b62f0ee323634f2cca6b019543de1cbf0c3"}
-TIMESTAMP: 1726224597
+REPO_REVISIONS: {"gentoo": "c99d89d43a9c868e3f06cbe6feb7dac70df0f534"}
+TIMESTAMP: 1726316766
Back to top
View user's profile Send private message
eschwartz
Developer
Developer


Joined: 29 Oct 2023
Posts: 214

PostPosted: Sun Sep 15, 2024 1:30 am    Post subject: Reply with quote

wanne32 wrote:

Quote:
These aren't large libraries in themselves but, presumably. they run some kind of initialization code, even if it has no effect outside a Wayland system. What the consequences of these things are, I don't know. But they can't be 'nothing'.
I would bet, that they are doing nothing at the moment. – Just set a few breakpoints with gdb.But I am very sure that this won't stay this way. qt and gtk where using already wayland like pixel based composition techniques. This was the idea behind wayland in the first place. While the current code was clearly developed x11 first, in the future there will be the question why just not use the functions that libs for wayland provide even when running on x11. Similar to how many applications now use systemd or pulseaudio libs. But then you won't be able to just disable them on compile time you would need to replace them by something with similar functionality like elogind or pipewire which provide the same functionality like logind and pulseaudio.


I'll wait for you to show an authoritative source on this claim...
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1948

PostPosted: Mon Sep 16, 2024 1:51 am    Post subject: Reply with quote

Regarding virtual memory, I just want to say that you should treat it as entirely distinct from RAM consumption. ASAN is a nice way to see that ;)
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3414
Location: Canada

PostPosted: Mon Sep 16, 2024 3:36 am    Post subject: Reply with quote

sam_ wrote:
Regarding virtual memory, I just want to say that you should treat it as entirely distinct from RAM consumption. ASAN is a nice way to see that ;)


Yep, for vivaldi-bin virtual memory is in terabytes :)

Even with resident memory there is a question how much of it is shared. Saying that, plasma with X11 has resident memory

100 MB X
200 MB kwin_x11 (half shared)
400 MB plasmashell ( 1/3 shared )
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum