LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-04-2023, 06:49 AM   #16
_peter
Member
 
Registered: Sep 2014
Location: paris
Distribution: slackware
Posts: 314

Rep: Reputation: Disabled

Quote:
Originally Posted by selfprogrammed View Post
4. Have user1 start the desktop (startx). Once the socket is created, it is not needed anymore. Leaving it running will not have any effect.
Using startx is not necessary, as any method of starting the desktop will cause ICE sockets to be created by Xorg.
Hello, tigervnc gave me similar issues on Slackware previous to 15.0 and annoyances.
Anyway, properly stopping a vnc session with a vncserver -kill and having root automatically clearing things in /tmp before shutting down was my dirty approach to clear out the following directories.
Code:
/tmp/.X11-unix/ <---
/tmp/.ICE-unix/
So you have a machine starting in init 3 mode where at least two users make use of startx ?

I tend to agree with the underlings rkelsen is phrasing and Patrick made changes for Slackware-current.
Interesting readings from henca.
 
Old 11-04-2023, 06:55 AM   #17
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,456
Blog Entries: 7

Rep: Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560
Quote:
Originally Posted by henca View Post
The real problem is that X does not clean up its sockets at exit.
...
This problem is probably not Slackware specific and should be reported as a bug upstream.
Agreed on both counts... But: https://www.theregister.com/2020/10/...iner_declares/

I wonder if Wayland has the same problem?
 
Old 11-04-2023, 06:58 AM   #18
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,795

Rep: Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474
Quote:
Originally Posted by henca View Post
When looking at my system who has the socket opened it seems to be xfce related processes, but also some other things might be related like polkit.
I use fvwm and I don't have anything in /tmp/.ICE-unix.

KDE creates the socket but it removes it when logged out.

Xfce creates the socket and does not remove it. The name of the socket is the same as the PID of process xfce4-session, so that's the quilty one?
 
2 members found this post helpful.
Old 11-04-2023, 08:43 AM   #19
the3dfxdude
Member
 
Registered: May 2007
Posts: 731

Rep: Reputation: 358Reputation: 358Reputation: 358Reputation: 358
Yes, XFCE is definitely one that leaves a socket on normal exit. I'd agree XFCE should fix it too for a full fix. There are also improper shutdowns, so doing it on boot handles that situation.
 
Old 11-04-2023, 08:49 AM   #20
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,370

Rep: Reputation: 4086Reputation: 4086Reputation: 4086Reputation: 4086Reputation: 4086Reputation: 4086Reputation: 4086Reputation: 4086Reputation: 4086Reputation: 4086Reputation: 4086
Quote:
Originally Posted by Petri Kaukasoina View Post
KDE creates the socket but it removes it when logged out.
Yep. Sessions are managed by ksmserver
 
1 members found this post helpful.
Old 11-04-2023, 09:06 AM   #21
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,508

Rep: Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320Reputation: 3320
Quote:
Originally Posted by henca View Post
It is nice to see some kind of fix to this problem, but IMHO it only attempts to hide the real problem in a way which still might fail.

The real problem is that X does not clean up its sockets at exit. Doing a cleanup at boot might help, but a system which is not rebooted very often might wrap around the PIDs several times (if I remember right PID wraps back to 1 when 32768 is reached). As such, left sockets or files owned by another user might block the creation or opening of a file or socket with the same name.

This problem is probably not Slackware specific and should be reported as a bug upstream. So where is upstream? When looking at my system who has the socket opened it seems to be xfce related processes, but also some other things might be related like polkit.

regards Henrik
Unfortunately, this kind of problems today IS quite Slackware specific, because everyone else uses systemd, and it's not only about PID EINZ, it have user side services, triggers, and various other features. IF a systemd based distribution really wants to solve this problem, probably it will use just a trigger unit on quitting graphical sessions.

Anyway, who cares about this when everybody marches to Wayland sessions?

Meanwhile, Slackware is not capable even to integrate the reference Wayland compositor, that Weston. No comments here. I've just noted with sadness.

Last edited by LuckyCyborg; 11-04-2023 at 09:16 AM.
 
Old 11-04-2023, 09:42 AM   #22
the3dfxdude
Member
 
Registered: May 2007
Posts: 731

Rep: Reputation: 358Reputation: 358Reputation: 358Reputation: 358
The problem is brittle program design followed up with, we'll let some other thing clean it up, which isn't always going to happen. We can do all we can, but I think upstream can do better.
 
Old 11-04-2023, 12:00 PM   #23
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,508

Rep: Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473
Quote:
Originally Posted by henca View Post
The real problem is that X does not clean up its sockets at exit.
X does clean them up with a proper exit, but they are left behind with a crash or exit via keyboard zap.
 
3 members found this post helpful.
Old 11-04-2023, 12:01 PM   #24
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,508

Rep: Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473Reputation: 8473
Quote:
Originally Posted by LuckyCyborg View Post
Meanwhile, Slackware is not capable even to integrate the reference Wayland compositor, that Weston. No comments here. I've just noted with sadness.
OK, you're going off the deep end moreso than usual.

Weston is dead simple to package. It's just useless.
 
Old 11-04-2023, 12:14 PM   #25
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Just make /tmp a tmpfs. It will auto-clean itself at shut down.
 
1 members found this post helpful.
Old 11-04-2023, 01:28 PM   #26
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,181

Rep: Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763Reputation: 1763
Quote:
Originally Posted by LuckyCyborg View Post
Unfortunately, this kind of problems today IS quite Slackware specific, because everyone else uses systemd ... .
The BSDs don't.
 
2 members found this post helpful.
Old 11-04-2023, 02:22 PM   #27
_peter
Member
 
Registered: Sep 2014
Location: paris
Distribution: slackware
Posts: 314

Rep: Reputation: Disabled
the remaining sockets in .X11-unix were due to a power outage in my case, X or vncserver were not terminated properly.
I had no clue at the time, now with the explanations from you folks it is a lot clearer, thanks.

yes no remaining sockets in .ICE-unix on a normal exit of plasma(x11) or fluxbox.
remaining sockets in .ICE-unix are with the xfce desktop, on a normal exit.
 
Old 11-04-2023, 02:59 PM   #28
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,456
Blog Entries: 7

Rep: Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560Reputation: 2560
Quote:
Originally Posted by Didier Spaier View Post
Just make /tmp a tmpfs. It will auto-clean itself at shut down.
This was suggested at post #4 to this thread, but was rejected because RAM is "too precious" and although it solves the problem, it isn't what OP wanted.
 
Old 11-04-2023, 03:45 PM   #29
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Quote:
Originally Posted by rkelsen View Post
This was suggested at post #4 to this thread, but was rejected because RAM is "too precious" and although it solves the problem, it isn't what OP wanted.
I should have read post #4... This notwithstanding the argument "RAM is too precious" is moot. First the allocated size can be set in the mount command. According to
https://www.kernel.org/doc/Documenta...tems/tmpfs.txt:
Quote:
The default is half of your physical RAM without swap
Further if you use swap in zram you probably won't ever need to use a swap partition or a swap file as with a zstd compressor you easily get twice the physical RAM as usable RAM in the zram block device. Here and now:
Code:
# LANG=C free -th
               total        used        free      shared  buff/cache   available
Mem:            15Gi       3.3Gi       7.1Gi       263Mi       5.1Gi        11Gi
Swap:           31Gi          0B        31Gi
Total:          46Gi       3.3Gi        38Gi
But I digress, sorry.

Last edited by Didier Spaier; 11-04-2023 at 03:59 PM. Reason: Typo fix.
 
1 members found this post helpful.
Old 11-04-2023, 04:10 PM   #30
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,795

Rep: Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474Reputation: 1474
Both cleaning /tmp with rm in /etc/rc.d/rc.S and using a tmpfs get rid of stale xfce ICE sockets only if you reboot.
Code:
23:08:07 up 562 days,  7:58,  8 users,  load average: 0.00, 0.00, 0.00
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Printing control files accumulate in the directory /var/spool/cups tonreg CentOS 15 11-30-2015 09:26 AM
Is there a clone of Ice Mirror from ice-graphics, with CD/DVD burning features? frenchn00b Linux - Software 0 05-22-2009 03:44 AM
Tool to accumulate customizations for migration to new installations theNbomr Linux - Software 5 03-17-2008 12:26 PM
How do I remove: protoname=ICE prododata="" netid=local/NASCI :/tmp/.ICE-unix/3344 NightSky Slackware 3 02-20-2008 03:06 PM
how to get the accumulate cpu time of a process chrislam Programming 1 10-14-2007 04:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration