Fedora Online Forum

Il forum della comunità italiana di Fedora

#1 14-08-2018 12:45:24

walkerboh
Greenhorn
Registrato: 12-08-2018
Messaggi: 4

Analisi avvio e consumo memoria

Buongiorno,

posso avere un vostro commento circa i log ed i consumi ?

Startup finished in 1.222s (kernel) + 4.598s (initrd) + 1min 9.394s (userspace) = 1min 15.215s
graphical.target reached after 1min 7.312s in userspace
[[email protected] ~]$ systemd-analyze blame
         27.611s plymouth-quit-wait.service
         19.910s systemd-journal-flush.service
         15.394s NetworkManager-wait-online.service
         11.747s firewalld.service
         10.421s lvm2-monitor.service
         10.068s udisks2.service
          9.520s accounts-daemon.service
          9.086s fwupd.service
          8.912s ModemManager.service
          7.120s systemd-udev-settle.service
          6.747s cups.service
          6.050s dati.mount
          5.845s dev-mapper-fedora_localhost\x2d\x2dlive\x2droot.device
          5.768s [email protected]:9.service
          5.695s bolt.service
          5.575s libvirtd.service
          4.978s initrd-switch-root.service
          4.884s polkit.service
          4.794s [email protected]\x2duuid-CAC3\x2d4C65.service
          4.617s abrtd.service
          4.420s gssproxy.service
          4.401s akmods.service
          4.101s windows.mount
          3.937s lm_sensors.service
          3.615s rtkit-daemon.service
          3.530s systemd-logind.service
          3.520s bluetooth.service
          3.374s [email protected]\x2duuid-679e0a27\x2d37dd\x2d4b35\x2dbaa1\x2d03043ad7e9d2.service
          3.329s avahi-daemon.service
          3.153s rsyslog.service
          3.146s livesys.service
          3.138s switcheroo-control.service
          3.137s systemd-machined.service
          2.894s chronyd.service
          2.833s dracut-initqueue.service
          2.535s dnf-makecache.service
          2.410s packagekit.service
          2.026s boot.mount
          1.935s sda6.mount
          1.601s dmraid-activation.service
          1.393s home.mount
          1.308s systemd-vconsole-setup.service
          1.152s fedora-readonly.service
          1.084s systemd-tmpfiles-setup-dev.service
          1.012s systemd-udevd.service
           974ms gdm.service
           954ms auditd.service
           920ms systemd-udev-trigger.service
           810ms sda5.mount
           789ms wpa_supplicant.service
           768ms [email protected]:intel_backlight.service
           766ms NetworkManager.service
           716ms [email protected]
           616ms systemd-rfkill.service
           614ms boot-efi.mount
           516ms colord.service
           482ms fedora-import-state.service
           477ms [email protected]_localhost\x2d\x2dlive\x2dhome.service
           437ms plymouth-read-write.service
           404ms systemd-sysctl.service
           391ms upower.service
           387ms systemd-tmpfiles-setup.service
           346ms nfs-config.service
           249ms systemd-remount-fs.service
           245ms systemd-update-utmp.service
           213ms systemd-user-sessions.service
           204ms sda7.mount
           204ms dev-mqueue.mount
           196ms kmod-static-nodes.service
           195ms systemd-tmpfiles-clean.service
           173ms sys-kernel-debug.mount
           172ms dev-hugepages.mount
           169ms initrd-parse-etc.service
           165ms systemd-journald.service
           162ms rpc-statd-notify.service
           159ms dev-mapper-fedora_localhost\x2d\x2dlive\x2dswap.swap
           153ms var-lib-nfs-rpc_pipefs.mount
           145ms systemd-random-seed.service
           133ms dracut-pre-pivot.service
           130ms [email protected]
            86ms dracut-shutdown.service
            84ms systemd-fsck-root.service
            73ms plymouth-switch-root.service
            73ms dracut-cmdline.service
            28ms livesys-late.service
            27ms initrd-cleanup.service
            19ms dracut-pre-udev.service
            18ms sysroot.mount
            15ms plymouth-start.service
            15ms tmp.mount
            13ms initrd-udevadm-cleanup-db.service
             7ms systemd-update-utmp-runlevel.service
             2ms sys-fs-fuse-connections.mount
             1ms sys-kernel-config.mount
top - 13:42:31 up  1:01,  1 user,  load average: 1,23, 1,32, 0,96
Tasks: 275 total,   1 running, 206 sleeping,   9 stopped,   0 zombie
%Cpu(s):  6,6 us,  2,2 sy,  0,0 ni, 89,6 id,  0,5 wa,  0,7 hi,  0,3 si,  0,0 st
KiB Mem :  8023428 total,   249480 free,  2161496 used,  5612452 buff/cache
KiB Swap:  8155132 total,  8148464 free,     6668 used.  5604820 avail Mem 

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                                                     
 2017 marco     20   0 3781352 206644  74792 S  13,2  2,6   2:27.35 cinnamon                                                                                                    
 1658 marco     20   0 1174944 115512  86488 S  10,9  1,4   1:02.05 Xorg                                                                                                        
 3302 marco     20   0  815360  44452  29352 S   7,3  0,6   0:05.41 gnome-terminal-                                                                                             
 3030 marco     20   0 1937500 184608  91824 S   1,3  2,3   0:17.16 Web Content                                                                                                 
 3718 marco     20   0  257352   4312   3560 R   1,0  0,1   0:00.38 top                                                                                                         
 1897 marco     20   0  630628  28004  17296 S   0,7  0,3   0:00.90 csd-housekeepin                                                                                             
 2870 marco     20   0 2522512 376432 133564 S   0,7  4,7   2:34.65 firefox                                                                                                     
    1 root      20   0  239296  12616   7740 S   0,3  0,2   0:04.79 systemd                                                                                                     
  817 root      20   0   98156   4664   3844 S   0,3  0,1   0:00.56 rngd                                                                                                        
 2608 root      20   0       0      0      0 I   0,3  0,0   0:01.18 kworker/0:1                                                                                                 
 2737 root      20   0       0      0      0 D   0,3  0,0   0:00.25 kworker/3:1                                                                                                 
 2779 root      20   0       0      0      0 I   0,3  0,0   0:00.93 kworker/u8:1                                                                                                
    2 root      20   0       0      0      0 S   0,0  0,0   0:00.00 kthreadd                                                                                                    
    4 root       0 -20       0      0      0 I   0,0  0,0   0:00.00 kworker/0:0H                                                                                                
    6 root       0 -20       0      0      0 I   0,0  0,0   0:00.00 mm_percpu_wq                                                                                                
    7 root      20   0       0      0      0 S   0,0  0,0   0:00.03 ksoftirqd/0                                                                                                 
    8 root      20   0       0      0      0 I   0,0  0,0   0:01.15 rcu_sched                                                                                                   
    9 root      20   0       0      0      0 I   0,0  0,0   0:00.00 rcu_bh                                                                                                      
   10 root      rt   0       0      0      0 S   0,0  0,0   0:00.00 migration/0                                                                                                 
   11 root      rt   0       0      0      0 S   0,0  0,0   0:00.00 watchdog/0                                                                                                  
   12 root      20   0       0      0      0 S   0,0  0,0   0:00.00 cpuhp/0                                                                                                     
   13 root      20   0       0      0      0 S   0,0  0,0   0:00.00 cpuhp/1                                                                                                     
   14 root      rt   0       0      0      0 S   0,0  0,0   0:00.00 watchdog/1                                                                                                  
   15 root      rt   0       0      0      0 S   0,0  0,0   0:00.00 migration/1                                                                                                 
   16 root      20   0       0      0      0 S   0,0  0,0   0:00.04 ksoftirqd/1                                                                                                 
   18 root       0 -20       0      0      0 I   0,0  0,0   0:00.00 kworker/1:0H                                                                                                
   19 root      20   0       0      0      0 S   0,0  0,0   0:00.00 cpuhp/2                                                                                                     
   20 root      rt   0       0      0      0 S   0,0  0,0   0:00.00 watchdog/2                                                                                                  
   21 root      rt   0       0      0      0 S   0,0  0,0   0:00.00 migration/2                                                                                                 
   22 root      20   0       0      0      0 S   0,0  0,0   0:00.06 ksoftirqd/2                                                                                                 
   24 root       0 -20       0      0      0 I   0,0  0,0   0:00.00 kworker/2:0H                                                                                                
   25 root      20   0       0      0      0 S   0,0  0,0   0:00.00 cpuhp/3                                                                                                     
   26 root      rt   0       0      0      0 S   0,0  0,0   0:00.00 watchdog/3                                                                                                  
   27 root      rt   0       0      0      0 S   0,0  0,0   0:00.00 migration/3                                                                                                 
   28 root      20   0       0      0      0 S   0,0  0,0   0:00.11 ksoftirqd/3                                                                                                 
   30 root       0 -20       0      0      0 I   0,0  0,0   0:00.00 kworker/3:0H                                                                                                
   31 root      20   0       0      0      0 S   0,0  0,0   0:00.00 kdevtmpfs                                                                                                   
   32 root       0 -20       0      0      0 I   0,0  0,0   0:00.00 netns                                                                                                       

Tutto a posto?
grazie mille .

Non in linea

#2 14-08-2018 17:20:44

beggar
Appena sbarcato sul forum
Registrato: 29-12-2016
Messaggi: 40

Re: Analisi avvio e consumo memoria

la mia macchina ( e non è un fulmine) risponde:

 systemd-analyze
Startup finished in 1.193s (kernel) + 795ms (initrd) + 12.209s (userspace) = 14.198s
graphical.target reached after 2.709s in userspace

cioè il sistema è su in 14 secondi, il tuo che hardware è ?

Ultima modifica di beggar (14-08-2018 17:42:07)

Non in linea

#3 15-08-2018 09:05:14

walkerboh
Greenhorn
Registrato: 12-08-2018
Messaggi: 4

Re: Analisi avvio e consumo memoria

Un i7 nuova generazione sad

comunque a parte l'avvio il sistema mi sembra reattivo.

[[email protected] ~]$ cat /proc/cpuinfo
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 78
model name	: Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz
stepping	: 3
microcode	: 0xc2
cpu MHz		: 900.018
cache size	: 4096 KB
physical id	: 0
siblings	: 4
core id		: 0
cpu cores	: 2
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 22
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single pti tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves ibpb ibrs stibp dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp
bugs		: cpu_meltdown spectre_v1 spectre_v2
bogomips	: 5184.00
clflush size	: 64
cache_alignment	: 64
address sizes	: 39 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 78
model name	: Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz
stepping	: 3
microcode	: 0xc2
cpu MHz		: 900.008
cache size	: 4096 KB
physical id	: 0
siblings	: 4
core id		: 1
cpu cores	: 2
apicid		: 2
initial apicid	: 2
fpu		: yes
fpu_exception	: yes
cpuid level	: 22
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single pti tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves ibpb ibrs stibp dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp
bugs		: cpu_meltdown spectre_v1 spectre_v2
bogomips	: 5184.00
clflush size	: 64
cache_alignment	: 64
address sizes	: 39 bits physical, 48 bits virtual
power management:

processor	: 2
vendor_id	: GenuineIntel
cpu family	: 6
model		: 78
model name	: Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz
stepping	: 3
microcode	: 0xc2
cpu MHz		: 900.051
cache size	: 4096 KB
physical id	: 0
siblings	: 4
core id		: 0
cpu cores	: 2
apicid		: 1
initial apicid	: 1
fpu		: yes
fpu_exception	: yes
cpuid level	: 22
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single pti tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves ibpb ibrs stibp dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp
bugs		: cpu_meltdown spectre_v1 spectre_v2
bogomips	: 5184.00
clflush size	: 64
cache_alignment	: 64
address sizes	: 39 bits physical, 48 bits virtual
power management:

processor	: 3
vendor_id	: GenuineIntel
cpu family	: 6
model		: 78
model name	: Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz
stepping	: 3
microcode	: 0xc2
cpu MHz		: 900.010
cache size	: 4096 KB
physical id	: 0
siblings	: 4
core id		: 1
cpu cores	: 2
apicid		: 3
initial apicid	: 3
fpu		: yes
fpu_exception	: yes
cpuid level	: 22
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single pti tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves ibpb ibrs stibp dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp
bugs		: cpu_meltdown spectre_v1 spectre_v2
bogomips	: 5184.00
clflush size	: 64
cache_alignment	: 64
address sizes	: 39 bits physical, 48 bits virtual
power management:

[[email protected] ~]$ 

1

Non in linea

#4 15-08-2018 11:46:49

beggar
Appena sbarcato sul forum
Registrato: 29-12-2016
Messaggi: 40

Re: Analisi avvio e consumo memoria

installa questo:

# dnf install hwinfo

e vediamo il responso:

# hwinfo --short

Non in linea

#5 15-08-2018 14:11:59

walkerboh
Greenhorn
Registrato: 12-08-2018
Messaggi: 4

Re: Analisi avvio e consumo memoria

[[email protected] ~]$ sudo hwinfo --short
cpu:                                                            
                       Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz, 506 MHz
                       Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz, 525 MHz
                       Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz, 550 MHz
                       Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz, 525 MHz
keyboard:
  /dev/input/event3    AT Translated Set 2 keyboard
mouse:
  /dev/input/mice      SynPS/2 Synaptics TouchPad
monitor:
                       SAMSUNG  L KT LCD Monitor
graphics card:
                       Lenovo Radeon R5 M330
                       Intel HD Graphics 520
sound:
                       Intel Sunrise Point-LP HD Audio
storage:
                       Intel Sunrise Point-LP SATA Controller [AHCI mode]
network:
  wlp2s0               Intel Dual Band Wireless-AC 3165 Plus Bluetooth
  enp1s0               Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
network interface:
  lo                   Loopback network interface
  wlp2s0               Ethernet network interface
  virbr0-nic           Ethernet network interface
  enp1s0               Ethernet network interface
  virbr0               Ethernet network interface
disk:
  /dev/sda             ST2000LM003 HN-M
partition:
  /dev/sda1            Partition
  /dev/sda2            Partition
  /dev/sda3            Partition
  /dev/sda4            Partition
  /dev/sda5            Partition
  /dev/sda6            Partition
  /dev/sda7            Partition
  /dev/sda8            Partition
  /dev/sda9            Partition
cdrom:
  /dev/sr0             HL-DT-ST DVDRAM GUE0N
usb controller:
                       Intel Sunrise Point-LP USB 3.0 xHCI Controller
bios:
                       BIOS
bridge:
                       Intel Sunrise Point-LP PCI Express Root Port #5
                       Intel Sunrise Point-LP LPC Controller
                       Intel Sunrise Point-LP PCI Express Root Port #6
                       Intel Skylake Host Bridge/DRAM Registers
                       Intel Sunrise Point-LP PCI Express Root Port #9
hub:
                       Linux Foundation 2.0 root hub
                       Linux Foundation 3.0 root hub
memory:
                       Main Memory
bluetooth:
                       Intel Bluetooth Device
unknown:
                       FPU
                       DMA controller
                       PIC
                       Keyboard controller
                       Intel Sunrise Point-LP PMC
                       Intel Sunrise Point-LP CSME HECI #1
                       Intel Sunrise Point-LP Thermal subsystem
                       Intel Sunrise Point-LP SMBus
                       Syntek Lenovo EasyCamera
                       Realtek RTS5129 Card Reader Controller
[[email protected] ~]$ 

EDIT:


ho rimosso plymouth, e libvirt* tramite dnf , mascherato lvm2 tramite

 sudo systemctl mask lvm2-monitor.service

ecco cosa ottengo:

Startup finished in 1.408s (kernel) + 3.404s (initrd) + 45.278s (userspace) = 50.090s
graphical.target reached after 35.119s in userspace
[[email protected] ~]$ systemd-analyze blame
         12.111s firewalld.service
         11.635s udisks2.service
         10.922s accounts-daemon.service
         10.598s NetworkManager-wait-online.service
          9.888s dev-mapper-fedora_localhost\x2d\x2dlive\x2droot.device
          9.880s systemd-udev-settle.service
          9.439s ModemManager.service
          7.008s lm_sensors.service
          6.513s chronyd.service
          6.399s fwupd.service
          6.267s avahi-daemon.service
          6.221s rtkit-daemon.service
          6.065s [email protected]:9.service
          5.913s systemd-logind.service
          5.909s rsyslog.service
          5.787s bluetooth.service
          5.714s akmods.service
          5.709s gssproxy.service
          5.628s switcheroo-control.service
          5.420s abrtd.service
          5.413s livesys-late.service
          5.402s initrd-switch-root.service
          5.082s bolt.service
          4.382s systemd-journal-flush.service
          4.048s cups.service
          3.830s polkit.service
          3.752s dati.mount
          3.184s packagekit.service
          3.119s windows.mount
          2.208s [email protected]\x2duuid-679e0a27\x2d37dd\x2d4b35\x2dbaa1\x2d03043ad7e9d2.service
          2.186s systemd-rfkill.service
          1.877s systemd-udevd.service
          1.854s fedora-readonly.service
          1.662s systemd-tmpfiles-setup-dev.service
          1.583s dracut-initqueue.service
          1.436s [email protected]\x2duuid-CAC3\x2d4C65.service
          1.357s sda6.mount
          1.151s systemd-sysctl.service
           964ms fedora-import-state.service
           904ms nfs-config.service
           903ms home.mount
           888ms sda5.mount
           866ms boot.mount
           794ms [email protected]_localhost\x2d\x2dlive\x2dhome.serv

Grazie

Ultima modifica di walkerboh (15-08-2018 15:59:52)

Non in linea

#6 15-08-2018 18:41:06

bebo_sudo
Collaboratore
Da Trento+Trieste
Registrato: 28-02-2011
Messaggi: 1'896
Sito web

Re: Analisi avvio e consumo memoria

Se e' un portatile o un pc casalingo e se non utilizzi firewalld (firewall-cmd), penso tu possa fermarlo (systemctl disable firewalld).
Solitamente anche avahi puo' essere disabilitato.
Se non usi chiavette/pennette/sim per andare su internet, puoi disabilitare anche ModemManager.
Disabilita anche livesys-late, e' un rimasuglio dell'installazione.
Puoi rimuovere anche NetworkManager-wait-online: la connessione al wifi/lan avverra' subito dopo (si usa per sistemi che fanno il boot da rete).
Puoi disabilitare anche gssproxy, per l'utente medio non serve.
Se non usi LVM (dato che l'hai gia' disabilitato parzialmente), puoi disabilitare anche lvm2-pvscan e systemd-udev-settle.

Penso tu possa disabilitare anche packagekit, si occupa di scaricare periodicamente la lista dei nuovi pacchetti e presentartela graficamente per ricordarti di fare aggiornamenti: personalmente preferisco diventare root manualmente e dare un dnf update quando ho tempo di controllare cosa vuole aggiornare.

Personalmente consiglio `systemctl disable` rispetto al mask: e' meno "cattivo" (https://askubuntu.com/questions/816285/ … ble#816378)

Ultima modifica di bebo_sudo (17-08-2018 14:55:05)


devzero.tk - github.com/bebosudo
Quando posti del codice, mettilo nel tag code! (senza spazi)            [ code]così[/ code]

Non in linea

Piè di pagina