You are not logged in.
My last effort today
pstree+packg number+ps_mem
-Image deleted by host-
Last edited by Nili (2015-06-06 14:26:24)
Offline
Offline
[BUMP!]
Quite pleased with this:
empty@Arch ~ % pstree
systemd─┬─2*[dbus-daemon]
├─dbus-launch
├─login───startx───xinit─┬─Xorg─┬─xf86-video-intel
│ │ └─{Xorg}
│ └─dwm───sh─┬─conky
│ └─sh
├─systemd───(sd-pam)
├─systemd-journal
├─systemd-logind
├─systemd-udevd
└─urxvtd───zsh───pstree
Yes, it is connected to the internet
[/BUMP!]
Offline
Currently i am on systemd :8 used to have less services with init, anyway
nili@corejess:~$ pstree
systemd─┬─conky───10*[{conky}]
├─dbus-daemon
├─dzen2
├─login───startx───xinit─┬─Xorg
│ └─openbox───rxvt-unicode─┬─pstree.x11
│ └─rxvt-unicode
├─rsyslogd─┬─{in:imklog}
│ ├─{in:imuxsock}
│ └─{rs:main Q:Reg}
├─systemd-journal
├─systemd-logind
├─systemd-udevd
├─tint2
└─vnstatd
Offline
@Nili -- you can disable syslog & use journalctl instead.
# systemctl disable syslog.service # I may be wrong about the name, use `systemctl|grep syslog` to check
# systemctl stop syslog.service
# gpassed -a nili systemd-journal
# newgrp systemd-journal
https://wiki.archlinux.org/index.php/Systemd#Journal
http://0pointer.de/blog/projects/journalctl.html
Offline
@Nili -- you can disable syslog & use journalctl instead.
# systemctl disable syslog.service # I may be wrong about the name, use `systemctl|grep syslog` to check # systemctl stop syslog.service # gpassed -a nili systemd-journal # newgrp systemd-journal
https://wiki.archlinux.org/index.php/Systemd#Journal
http://0pointer.de/blog/projects/journalctl.html
Now i understood why I have no "journal" at /var/log/journal - I was doing a verification according to ratcheer post but even looked on arch forum regarding "SystemMaxUse" guess I noticed
nili@corejess:~$ journalctl --disk-usage
No journal files were found.
Journals take up 0B on disk.
apparently journal did not come in use because of syslog, this setting come from Debian itself i didn't anything myself on this part. My netinstall Debian 8 has chosen this preference, whether it is accurate or correct I do not knew. I'll look into your suggestion. Thank you!
Last edited by Nili (2015-06-06 17:36:32)
Offline
Yeah Debian 8 does not enable journald by default. I have set my live build up to enable it, since I prefer it's logging mechanisms.
Offline
Head_on_a_Stick, please let me know how to config it here? numbers or where to remove "#" or active something.
[Journal]
#Storage=auto
#Compress=yes
#Seal=yes
#SplitMode=uid
#SyncIntervalSec=5m
#RateLimitInterval=30s
#RateLimitBurst=1000
#SystemMaxUse=
#SystemKeepFree=
#SystemMaxFileSize=
#RuntimeMaxUse=
#RuntimeKeepFree=
#RuntimeMaxFileSize=
#MaxRetentionSec=
#MaxFileSec=1month
#ForwardToSyslog=yes
#ForwardToKMsg=no
#ForwardToConsole=no
#ForwardToWall=yes
#TTYPath=/dev/console
#MaxLevelStore=debug
#MaxLevelSyslog=debug
#MaxLevelKMsg=notice
#MaxLevelConsole=info
#MaxLevelWall=emerg
Thank you!
Also, since i actived journal can i safely remove syslog?
I am very noob when it comes to systemd/journal i used sysinit very long time. Sorry for my noob question.
Offline
Head_on_a_Stick, please let me know how to config it here?
The commented out lines represent the default settings -- if you wish to change any of these, un-comment the line and enter the desired setting.
I would recommend this:
SystemMaxUse=100M
To limit the maximum journal size as very large journals delay startup whilst systemd "flushes" he journal files.
can i safely remove syslog?
I think so, yes.
I've just `purge`d it in my BunsenLabs guinea-pig system so we'll see if there are any problems...
]:D
Offline
OK Done it!
found some useful journalctl commands also:
Mastering journalctl
journalctl --all - gives you the full journal of the system and all users
journalctl -b – shows the protocol of the last boot
journalctl -b -p err - limits it to the last boot and limits it to priority ERROR
journalctl --since=yesterday - since Linux people normaly do not reboot often, this might be limiting it more than -b
journalctl /dev/sda - shows all logs of the kernel device node /dev/sda
journalctl /usr/bin/dbus-daemon - shows all logs generated by the D-Bus executable
journalctl -k -b -1 - shows all kernel logs from previous boot (-1))
journalctl -f - gives you a live view of the journal as it grows (used to be tail -f /var/log/messages)
Ok, i do not have any further question, many thanks for sharing you though Head_on_a_Stick.
Offline
Back on topic, after removing rsyslog, activated journal, currently i have startup >pstree>ps_mem.py
systemd─┬─conky───10*[{conky}]
├─dbus-daemon
├─dzen2
├─login───startx───xinit─┬─Xorg
│ └─openbox───rxvt-unicode─┬─pstree.x11
│ └─rxvt-unicode
├─systemd-journal
├─systemd-logind
├─systemd-udevd
├─tint2
└─vnstatd
[root@corejess nili]# python psmem
Private + Shared = RAM used Program
156.0 KiB + 98.0 KiB = 254.0 KiB vnstatd
196.0 KiB + 69.5 KiB = 265.5 KiB startx
172.0 KiB + 183.5 KiB = 355.5 KiB xinit
624.0 KiB + 144.0 KiB = 768.0 KiB systemd-logind
664.0 KiB + 149.0 KiB = 813.0 KiB conky
596.0 KiB + 266.0 KiB = 862.0 KiB login
820.0 KiB + 281.0 KiB = 1.1 MiB dbus-daemon
792.0 KiB + 323.0 KiB = 1.1 MiB sudo
1.1 MiB + 212.5 KiB = 1.3 MiB systemd-udevd
652.0 KiB + 886.5 KiB = 1.5 MiB dzen2
772.0 KiB + 1.3 MiB = 2.1 MiB bash (2)
1.9 MiB + 226.0 KiB = 2.1 MiB systemd
1.7 MiB + 2.5 MiB = 4.2 MiB tint2
5.0 MiB + 180.0 KiB = 5.2 MiB systemd-journald
5.1 MiB + 3.0 MiB = 8.1 MiB openbox
7.1 MiB + 4.0 MiB = 11.2 MiB rxvt-unicode (2)
11.9 MiB + 697.5 KiB = 12.6 MiB Xorg
---------------------------------
53.6 MiB
=================================
Last edited by Nili (2015-06-07 17:38:58)
Offline
My current tree after startup
nili@debian:~$ pstree
systemd─┬─dbus-daemon
├─login───startx───xinit─┬─Xorg
│ └─spectrwm─┬─conky───7*[{conky}]
│ └─urxvt─┬─bash───pstree
│ └─urxvt
├─systemd───(sd-pam)
├─systemd-journal
├─systemd-logind
└─systemd-udevd
nili@debian:~$ psmem
Private + Shared = RAM used Program
176.0 KiB + 88.5 KiB = 264.5 KiB startx
180.0 KiB + 288.5 KiB = 468.5 KiB xinit
644.0 KiB + 177.0 KiB = 821.0 KiB conky
696.0 KiB + 180.5 KiB = 876.5 KiB systemd-logind
428.0 KiB + 483.5 KiB = 911.5 KiB (sd-pam)
712.0 KiB + 320.5 KiB = 1.0 MiB login
876.0 KiB + 284.0 KiB = 1.1 MiB dbus-daemon
844.0 KiB + 407.5 KiB = 1.2 MiB sudo
1.0 MiB + 225.5 KiB = 1.2 MiB systemd-udevd
1.3 MiB + 296.0 KiB = 1.6 MiB bash
916.0 KiB + 749.5 KiB = 1.6 MiB spectrwm
740.0 KiB + 1.6 MiB = 2.3 MiB systemd (2)
3.1 MiB + 206.0 KiB = 3.3 MiB systemd-journald
7.1 MiB + 2.2 MiB = 9.3 MiB urxvt (2)
12.3 MiB + 486.0 KiB = 12.7 MiB Xorg
---------------------------------
38.8 MiB
=================================
Offline
Running this I noticed that packages I installed had actually enabled services via systemd. Services such as: bitlbee (I haven't fired up irssi once yet;) mpd (I use audacious whenever I can;) and wicd (auto iface works just fine for me, I ain't going anywhere).
systemd-+-acpid
|-atd
|-conky---5*[{conky}]
|-cron
|-2*[dbus-daemon]
|-dbus-launch
|-dhclient
|-exim4
|-login---bash---startx---xinit-+-Xorg
| `-fluxbox-+-iceweasel-+-4*[{Analysis Helper}]
| | |-{Cache I/O}
| | |-{Cache2 I/O}
| | |-{Cert Verify}
| | |-{DNS Resolver #6}
| | |-{DNS Resolver #7}
| | |-2*[{DOM Worker}]
| | |-{Gecko_IOThread}
| | |-{HTML5 Parser}
| | |-{Hang Monitor}
| | |-{Image Scaler}
| | |-{ImageDe~der #14}
| | |-{ImageDe~der #15}
| | |-{ImageDe~der #16}
| | |-{JS GC Helper}
| | |-{JS Watchdog}
| | |-{MediaManager}
| | |-{Network Seer}
| | |-{Proxy R~olution}
| | |-{Socket Thread}
| | |-{StreamTrans #17}
| | |-{Timer}
| | |-{URL Classifier}
| | |-{dconf worker}
| | |-{gdbus}
| | |-{gmain}
| | |-{iceweasel}
| | |-{localStorage DB}
| | |-{mozStorage #1}
| | |-{mozStorage #2}
| | |-{mozStorage #3}
| | |-{mozStorage #4}
| | |-{mozStorage #5}
| | `-{mozStorage #6}
| |-parcellite---{gmain}
| |-python2
| |-radiotray
| |-unclutter
| |-urxvt-+-bash---pstree
| | `-urxvt
| `-volti
|-minissdpd
|-rpc.idmapd
|-rpc.statd
|-rpcbind
|-rsyslogd-+-{in:imklog}
| |-{in:imuxsock}
| `-{rs:main Q:Reg}
|-sshd
|-systemd---(sd-pam)
|-systemd-journal
|-systemd-logind
|-systemd-udevd
`-wpa_supplicant
Well that explains why I'm idling ~512MB
P.S. I hear few to none ever mention my favorite journalctl switch..."-u". It's like 'systemctl status' only the rest of the entries.
# journalctl -u ${service}[.service]
Last edited by smacz (2015-07-22 11:23:08)
Offline
Running this I noticed that packages I installed had actually enabled services via systemd.
Debian is a little bit annoying like that -- neither Arch nor Slackware do that.
Check which .services, .sockets & .targets are being started at boot with:
ls -lR /etc/systemd/system
@Nili -- how are you connecting to the internet?
Offline
@Nili -- how are you connecting to the internet?
Desktop >Ethernet cable, >Wired connection, from netinst installation i have chosed options set manually and so i config my settings they are stored somewhere but not bothered checking.
Offline
Nice!
they are stored somewhere
/etc/network/interfaces
Offline
Hell yes!
From your suggestion i've made some choices, (internet connection) is one of them my dear honored friend.
Offline
init─┬─ModemManager─┬─{gdbus}
│ └─{gmain}
├─SpiderOak─┬─SpiderOak─┬─inotify_dir_wat
│ │ └─{SpiderOak}
│ └─{SpiderOak}
├─6*[agetty]
├─2*[at-spi-bus-laun─┬─dbus-daemon]
│ ├─{gdbus}]
│ └─{gmain}]
├─2*[at-spi2-registr───{gdbus}]
├─blueman-applet
├─bluetoothd
├─compton
├─conky───5*[{conky}]
├─connmand
├─conntrackd
├─console-kit-dae─┬─62*[{console-kit-dae}]
│ ├─{gdbus}
│ └─{gmain}
├─cron
├─3*[dbus-daemon]
├─dbus-launch
├─gconfd-2
├─geoclue───{gdbus}
├─gpm
├─2*[gvfsd───{gdbus}]
├─gvfsd-fuse─┬─{gdbus}
│ ├─{gvfs-fuse-sub}
│ └─2*[{gvfsd-fuse}]
├─lxdm-binary─┬─X───{X}
│ └─openbox
├─2*[notify-osd─┬─{dconf worker}]
│ └─{gdbus}]
├─obex-data-serve
├─parcellite───{gmain}
├─polkit-gnome-au───{gdbus}
├─polkitd─┬─{gdbus}
│ ├─{gmain}
│ ├─{polkitd}
│ └─{runaway-killer-}
├─python2.7
├─sh───wallpapers.sh───sleep
├─sh───tint2
├─sh───redshift-gtk─┬─redshift───{gdbus}
│ └─{gmain}
├─sh───xfce4-panel─┬─firefox─┬─8*[{Analysis Helper}]
│ │ ├─{Cache I/O}
│ │ ├─{Cache2 I/O}
│ │ ├─{Cert Verify}
│ │ ├─{Compositor}
│ │ ├─{DNS Resolver #9}
│ │ ├─{DNS Res~ver #10}
│ │ ├─{DNS Res~ver #13}
│ │ ├─3*[{DOM Worker}]
│ │ ├─{GMPThread}
│ │ ├─{Gecko_IOThread}
│ │ ├─{HTML5 Parser}
│ │ ├─{Hang Monitor}
│ │ ├─{IPDL Background}
│ │ ├─{Image Scaler}
│ │ ├─{ImageBridgeChil}
│ │ ├─{ImageDe~der #17}
│ │ ├─{ImageIO}
│ │ ├─{JS Watchdog}
│ │ ├─{Link Monitor}
│ │ ├─{Proxy R~olution}
│ │ ├─{Socket Thread}
│ │ ├─{StreamTrans #19}
│ │ ├─{Timer}
│ │ ├─{URL Classifier}
│ │ ├─3*[{firefox}]
│ │ ├─{gmain}
│ │ ├─{localStorage DB}
│ │ ├─{mozStorage #1}
│ │ ├─{mozStorage #2}
│ │ ├─{mozStorage #3}
│ │ ├─{mozStorage #4}
│ │ ├─{mozStorage #5}
│ │ ├─{mozStorage #6}
│ │ └─{mozStorage #7}
│ ├─panel-10-mixer───{task0}
│ ├─panel-14-power-───{gdbus}
│ ├─xfce4-xkb-plugi
│ └─{gmain}
├─sh───xfce4-terminal─┬─bash───make─┬─make───make───sh───gcc─┬─as
│ │ │ └─cc1
│ │ ├─make───make───make
│ │ └─make─┬─make───sh───gcc─┬─as
│ │ │ └─cc1
│ │ └─make───2*[sh───gcc─┬─as]
│ │ └─cc1]
│ ├─bash
│ ├─bash───pstree
│ ├─gnome-pty-helpe
│ ├─{gdbus}
│ └─{gmain}
├─sh───dropbox─┬─{QXcbEventReader}
│ └─33*[{dropbox}]
├─sh───thunar───{gmain}
├─sh───sh─┬─conky─┬─sh
│ │ └─{conky}
│ ├─conky
│ ├─conky───{conky}
│ └─conky───3*[{conky}]
├─sh───volti
├─2*[synergys───2*[{synergys}]]
├─syslog-ng───syslog-ng───3*[{syslog-ng}]
├─udevd
├─upowerd─┬─{gdbus}
│ └─{gmain}
├─wpa_supplicant
├─xfce4-power-man───{gdbus}
├─2*[xfconfd]
└─xscreensaver
i just happend to be compiling a kernel as I got my pstre.
"We don't merge kernel code just because user space was written by a retarded monkey on crack."
Linus f****g Trovalds
Offline
init─┬─ModemManager─┬─{gdbus}
│ └─{gmain}
├─SpiderOak─┬─SpiderOak─┬─inotify_dir_wat
│ │ └─{SpiderOak}
│ └─{SpiderOak}
├─6*[agetty]
├─at-spi-bus-laun─┬─dbus-daemon
│ ├─{dconf worker}
│ ├─{gdbus}
│ └─{gmain}
├─at-spi2-registr───{gdbus}
├─compton
├─conky───5*[{conky}]
├─conntrackd
├─console-kit-dae─┬─57*[{console-kit-dae}]
│ ├─{gdbus}
│ └─{gmain}
├─cron
├─3*[dbus-daemon]
├─dbus-launch
├─dhcpcd
├─gconfd-2
├─geoclue───{gdbus}
├─gnome-keyring-d─┬─{dconf worker}
│ ├─{gdbus}
│ ├─{gmain}
│ └─{timer}
├─gpm
├─lxdm-binary─┬─X───4*[{X}]
│ └─openbox───xfce4-terminal─┬─bash
│ ├─gnome-pty-helpe
│ ├─{gdbus}
│ └─{gmain}
├─polkit-gnome-au───{gdbus}
├─polkitd─┬─{JS GC Helper}
│ ├─{JS Sour~ Thread}
│ ├─{gdbus}
│ ├─{gmain}
│ └─{runaway-killer-}
├─redshift-gtk─┬─redshift───{gdbus}
│ └─{gmain}
├─sh───tint2───notify-send
├─sh───volti───{volti}
├─sh───parcellite───{gmain}
├─sh───spacefm
├─sh───dropbox───21*[{dropbox}]
├─sshd───sshd───sshd───bash───pstree
├─synergyc───2*[{synergyc}]
├─syslog-ng───syslog-ng───2*[{syslog-ng}]
├─tudor-volumed
├─udevd
├─udisksd─┬─{cleanup}
│ ├─{gdbus}
│ ├─{gmain}
│ └─{probing-thread}
├─upowerd─┬─{gdbus}
│ └─{gmain}
├─2*[wpa_supplicant]
├─xfce4-power-man───{gdbus}
└─xfconfd
this one is from my eepc, which has more "minimalistic" approach.
edit: I have no Idea why gnome-keyring is running there...
edit2: got rid of it.
Last edited by pingu (2015-07-22 18:00:00)
"We don't merge kernel code just because user space was written by a retarded monkey on crack."
Linus f****g Trovalds
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat