You are not logged in.
Pages: 1
I am trying to remove unwanted services from boot, specifically enp0s3 which I don't use as I don't have a ethernet card.
This is my start up time analysis:
$ systemd-analyze blame
24.503s netctl@fisher.service
1.625s systemd-logind.service
1.580s alsa-restore.service
1.579s iptables.service
684ms updatedb.service
626ms man-db.service
375ms systemd-journal-flush.service
62ms systemd-journald.service
53ms systemd-udevd.serviceFrom the journal I see this - Timed out waiting for device sys-subsystem-net-devices-enp0s3.device.
Jan 19 10:30:51 arch network[273]: Starting network profile 'fisher'...
Jan 19 10:30:51 arch systemd-logind[223]: Watching system buttons on /dev/input/event3 (Power Button)
Jan 19 10:30:51 arch systemd-logind[223]: Watching system buttons on /dev/input/event6 (Video Bus)
Jan 19 10:30:51 arch kernel: random: nonblocking pool is initialized
Jan 19 10:30:51 arch kernel: b43-phy0: Loading firmware version 784.2 (2012-08-15 21:35:19)
Jan 19 10:30:52 arch kernel: IPv6: ADDRCONF(NETDEV_UP): wlp3s0b1: link is not ready
Jan 19 10:30:52 arch systemd[1]: Started Update man-db cache.
Jan 19 10:30:52 arch systemd[1]: Started Update locate database.
Jan 19 10:30:53 arch kernel: wlp3s0b1: authenticate with 00:25:15:1d:7b:34
Jan 19 10:30:53 arch kernel: wlp3s0b1: direct probe to 00:25:15:1d:7b:34 (try 1/3)
Jan 19 10:30:53 arch kernel: wlp3s0b1: send auth to 00:25:15:1d:7b:34 (try 2/3)
Jan 19 10:30:53 arch kernel: wlp3s0b1: authenticated
Jan 19 10:30:53 arch kernel: wlp3s0b1: associate with 00:25:15:1d:7b:34 (try 1/3)
Jan 19 10:30:53 arch kernel: wlp3s0b1: RX AssocResp from 00:25:15:1d:7b:34 (capab=0x411 status=0 aid=1)
Jan 19 10:30:53 arch kernel: wlp3s0b1: associated
Jan 19 10:30:53 arch kernel: IPv6: ADDRCONF(NETDEV_CHANGE): wlp3s0b1: link becomes ready
Jan 19 10:30:53 arch dhcpcd[390]: version 6.6.7 starting
Jan 19 10:30:53 arch dhcpcd[390]: DUID 00:01:00:01:1c:0d:93:4d:08:00:27:34:83:28
Jan 19 10:30:53 arch dhcpcd[390]: wlp3s0b1: IAID 96:d0:29:ff
Jan 19 10:30:53 arch dhcpcd[390]: wlp3s0b1: rebinding lease of 192.168.1.65
Jan 19 10:30:58 arch dhcpcd[390]: wlp3s0b1: DHCP lease expired
Jan 19 10:30:59 arch dhcpcd[390]: wlp3s0b1: soliciting a DHCP lease
Jan 19 10:31:10 arch dhcpcd[390]: wlp3s0b1: offered 192.168.1.65 from 192.168.1.1
Jan 19 10:31:16 arch dhcpcd[390]: wlp3s0b1: leased 192.168.1.65 for 86400 seconds
Jan 19 10:31:16 arch dhcpcd[390]: wlp3s0b1: adding route to 192.168.1.0/24
Jan 19 10:31:16 arch dhcpcd[390]: wlp3s0b1: adding default route via 192.168.1.1
Jan 19 10:31:16 arch dhcpcd[390]: forked to background, child pid 468
Jan 19 10:31:16 arch network[273]: Started network profile 'fisher'
Jan 19 10:31:16 arch systemd[1]: Started A simple WPA encrypted wireless connection.
Jan 19 10:32:19 arch systemd[1]: Job sys-subsystem-net-devices-enp0s3.device/start timed out.
Jan 19 10:32:19 arch systemd[1]: Timed out waiting for device sys-subsystem-net-devices-enp0s3.device.
Jan 19 10:32:19 arch systemd[1]: Dependency failed for dhcpcd on enp0s3.
Jan 19 10:32:19 arch systemd[1]: Job dhcpcd@enp0s3.service/start failed with result 'dependency'.
Jan 19 10:32:19 arch systemd[1]: Job sys-subsystem-net-devices-enp0s3.device/start failed with result 'timeout'.
Jan 19 10:32:19 arch systemd[1]: Starting Network.
Jan 19 10:32:19 arch systemd[1]: Reached target Network.
Jan 19 10:32:19 arch systemd[1]: Starting OpenSSH Daemon...
Jan 19 10:32:19 arch systemd[1]: Started OpenSSH Daemon.
Jan 19 10:32:19 arch systemd[1]: Starting Multi-User System.
Jan 19 10:32:19 arch systemd[1]: Reached target Multi-User System.
Jan 19 10:32:19 arch systemd[1]: Starting Graphical Interface.
Jan 19 10:32:19 arch systemd[1]: Reached target Graphical Interface.
Jan 19 10:32:19 arch systemd[1]: Startup finished in 1.025s (kernel) + 1min 30.574s (userspace) = 1min 31.599s.As I don't have ethernet can I turn it off? I saw this https://bbs.archlinux.org/viewtopic.php?id=158885 which is almost the opposite of my issue so I tried
systemctl disable dhcpcd(I'm unsure if that is wise or even relevant) but still the device is trying to start and I don't know why
$ systemctl status dhcpcd
● dhcpcd.service - dhcpcd on all interfaces
Loaded: loaded (/usr/lib/systemd/system/dhcpcd.service; disabled; vendor preset: disabled)
Active: inactive (dead)
[adam@arch rules.d]$ $ systemctl status sys-subsystem-net-devices-enp0s3.device
● sys-subsystem-net-devices-enp0s3.device
Loaded: loaded
Active: inactive (dead)
Jan 19 10:32:19 arch systemd[1]: Job sys-subsystem-net-devices-enp0s3.device/start timed out.
Jan 19 10:32:19 arch systemd[1]: Timed out waiting for device sys-subsystem-net-devices-enp0s3.device.
Jan 19 10:32:19 arch systemd[1]: Job sys-subsystem-net-devices-enp0s3.device/start failed with result 'timeout'.Last edited by halasz (2015-01-19 14:35:53)
Offline
Blacklist the driver for the ethernet device.
Offline
From here https://wiki.archlinux.org/index.php/Ke … acklisting the method seems to be to blacklist the module.
sudo lspci -v doesn't list any kernel modules for ethernet.
02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM57786 Gigabit Ethernet PCIe (rev 21)
Subsystem: Broadcom Corporation NetXtreme BCM57786 Gigabit Ethernet PCIe
Flags: fast devsel
Memory at a0400000 (64-bit, prefetchable) [disabled] [size=64K]
Memory at a0410000 (64-bit, prefetchable) [disabled] [size=64K]
Expansion ROM at 8fa00000 [disabled] [size=2K]
Capabilities: [48] Power Management version 3
Capabilities: [50] Vital Product Data
Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+
Capabilities: [a0] MSI-X: Enable- Count=5 Masked-
Capabilities: [ac] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [13c] Device Serial Number 00-00-00-10-18-00-00-00
Capabilities: [150] Power Budgeting <?>
Capabilities: [160] Virtual Channel
Capabilities: [1b0] Latency Tolerance Reporting
02:00.1 SD Host controller: Broadcom Corporation BCM57765/57785 SDXC/MMC Card Reader (rev 21) (prog-if 01)
Subsystem: Broadcom Corporation Device 96bc
Flags: bus master, fast devsel, latency 0, IRQ 17
Memory at a0420000 (64-bit, prefetchable) [size=64K]
Capabilities: [48] Power Management version 3
Capabilities: [58] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [ac] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [150] Power Budgeting <?>
Capabilities: [160] Virtual Channel
Kernel driver in use: sdhci-pci
Kernel modules: sdhci_pciAm I misunderstanding? Should I be trying to blacklist the kernel module (which I don't know) or is there another method to disable the driver?
Offline
I find it odd that 'lspci -v' isn't showing your modules. Have you tried 'lspci -vv'? How about 'lsmod | grep tg'?
Or, conversely, you can disable the ethernet from your bios... I wouldn't know if that would also disable the wireless.
An old man, trying to stay sane
Offline
lsmod | grep tg shows nothing at all (why tg btw? did you mean th for ethernet?).
$ sudo lsmod | grep th
bluetooth 403639 2 btusb
rfkill 18867 3 cfg80211,bluetooth
x86_pkg_temp_thermal 12951 0
thunderbolt 48817 0
crc16 12343 2 ext4,bluetoothlspci-vv doesn't show kernel modules either for ethernet.
02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM57786 Gigabit Ethernet PCIe (rev 21)
Subsystem: Broadcom Corporation NetXtreme BCM57786 Gigabit Ethernet PCIe
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin A routed to IRQ 0
Region 0: Memory at a0400000 (64-bit, prefetchable) [disabled] [size=64K]
Region 2: Memory at a0410000 (64-bit, prefetchable) [disabled] [size=64K]
Expansion ROM at 8fa00000 [disabled] [size=2K]
Capabilities: [48] Power Management version 3
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=1 PME-
Capabilities: [50] Vital Product Data
Product Name: Broadcom NetXtreme Gigabit Ethernet Controller
Read-only fields:
[PN] Part number: BCM957766
[EC] Engineering changes: 106679-15
[SN] Serial number: 0123456789
[MN] Manufacture ID: 31 34 65 34
[RV] Reserved: checksum good, 27 byte(s) reserved
End
Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+
Address: 0000000000000000 Data: 0000
Capabilities: [a0] MSI-X: Enable- Count=5 Masked-
Vector table: BAR=2 offset=00000000
PBA: BAR=2 offset=00000120
Capabilities: [ac] Express (v2) Endpoint, MSI 00
DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <4us, L1 <64us
ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
RlxdOrd+ ExtTag- PhantFunc- AuxPwr+ NoSnoop+
MaxPayload 128 bytes, MaxReadReq 512 bytes
DevSta: CorrErr+ UncorrErr- FatalErr- UnsuppReq+ AuxPwr+ TransPend-
LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <2us, L1 <64us
ClockPM+ Surprise- LLActRep- BwNot- ASPMOptComp+
LnkCtl: ASPM L1 Enabled; RCB 64 bytes Disabled- CommClk+
ExtSynch- ClockPM+ AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
DevCap2: Completion Timeout: Range ABCD, TimeoutDis+, LTR+, OBFF Not Supported
DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled
LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis-
Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
Compliance De-emphasis: -6dB
LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete-, EqualizationPhase1-
EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-
Capabilities: [100 v1] Advanced Error Reporting
UESta: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UEMsk: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
CESta: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
CEMsk: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
AERCap: First Error Pointer: 00, GenCap+ CGenEn- ChkCap+ ChkEn-
Capabilities: [13c v1] Device Serial Number 00-00-00-10-18-00-00-00
Capabilities: [150 v1] Power Budgeting <?>
Capabilities: [160 v1] Virtual Channel
Caps: LPEVC=0 RefClk=100ns PATEntryBits=1
Arb: Fixed- WRR32- WRR64- WRR128-
Ctrl: ArbSelect=Fixed
Status: InProgress-
VC0: Caps: PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
Arb: Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
Ctrl: Enable+ ID=0 ArbSelect=Fixed TC/VC=ff
Status: NegoPending- InProgress-
Capabilities: [1b0 v1] Latency Tolerance Reporting
Max snoop latency: 0ns
Max no snoop latency: 0ns
02:00.1 SD Host controller: Broadcom Corporation BCM57765/57785 SDXC/MMC Card Reader (rev 21) (prog-if 01)It does for other things. In fact ethernet is the only thing on lspci that *doesn't* have an associated Kernel Driver or Module.
sudo lspci -k
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
Subsystem: Apple Inc. Device 0102
Kernel driver in use: ivb_uncore
libkmod: kmod_config_parse: /etc/modprobe.d/xhci-reset-on-suspend.conf line 1: ignoring bad line starting with '#'
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:01.1 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
Subsystem: Apple Inc. Device 0102
Kernel driver in use: i915
Kernel modules: i915
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
Subsystem: Intel Corporation Device 7270
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
Subsystem: Intel Corporation Device 7270
Kernel driver in use: mei_me
Kernel modules: mei_me
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
Subsystem: Intel Corporation Device 7270
Kernel driver in use: ehci-pci
Kernel modules: ehci_pci
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
Subsystem: Intel Corporation Device 7270
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
Subsystem: Intel Corporation Device 7270
Kernel driver in use: ehci-pci
Kernel modules: ehci_pci
00:1f.0 ISA bridge: Intel Corporation QS77 Express Chipset LPC Controller (rev 04)
Subsystem: Intel Corporation Device 7270
Kernel driver in use: lpc_ich
Kernel modules: lpc_ich
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
Subsystem: Intel Corporation Device 7270
Kernel driver in use: ahci
Kernel modules: ahci
00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
Subsystem: Intel Corporation Device 7270
Kernel modules: i2c_i801
02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM57786 Gigabit Ethernet PCIe (rev 21)
Subsystem: Broadcom Corporation NetXtreme BCM57786 Gigabit Ethernet PCIe
02:00.1 SD Host controller: Broadcom Corporation BCM57765/57785 SDXC/MMC Card Reader (rev 21)
Subsystem: Broadcom Corporation Device 96bc
Kernel driver in use: sdhci-pci
Kernel modules: sdhci_pci
03:00.0 Network controller: Broadcom Corporation BCM4331 802.11a/b/g/n (rev 02)
Subsystem: Apple Inc. AirPort Extreme
Kernel driver in use: bcma-pci-bridge
Kernel modules: bcma
04:00.0 PCI bridge: Intel Corporation DSL3510 Thunderbolt Port [Cactus Ridge] (rev 03)
Kernel driver in use: pcieport
Kernel modules: shpchp
05:00.0 PCI bridge: Intel Corporation DSL3510 Thunderbolt Port [Cactus Ridge] (rev 03)
Kernel driver in use: pcieport
Kernel modules: shpchp
05:03.0 PCI bridge: Intel Corporation DSL3510 Thunderbolt Port [Cactus Ridge] (rev 03)
Kernel driver in use: pcieport
Kernel modules: shpchp
05:04.0 PCI bridge: Intel Corporation DSL3510 Thunderbolt Port [Cactus Ridge] (rev 03)
Kernel driver in use: pcieport
Kernel modules: shpchp
05:05.0 PCI bridge: Intel Corporation DSL3510 Thunderbolt Port [Cactus Ridge] (rev 03)
Kernel driver in use: pcieport
Kernel modules: shpchp
05:06.0 PCI bridge: Intel Corporation DSL3510 Thunderbolt Port [Cactus Ridge] (rev 03)
Kernel driver in use: pcieport
Kernel modules: shpchp
06:00.0 System peripheral: Intel Corporation DSL3510 Thunderbolt Port [Cactus Ridge] (rev 03)
Subsystem: Device 2222:1111
Kernel driver in use: thunderbolt
Kernel modules: thunderboltI don't have a bios (have a macbook) - I am booting EFI. I could pass a kernel parameter but it is same issue - I need to know what module to disable. Or how to disable the driver.
Last edited by halasz (2015-01-19 13:35:42)
Offline
I'm at a loss.... Without a module to blacklist or unload, there isn't be a module to disable. Do you think that maybe it's being loaded/controlled by sdhci_pci, the card reader (pci:02.00.1)?
An old man, trying to stay sane
Offline
Solved. It was my fault. I set-up this machine on VirtualBox and then moved it. Looks like I forgot about these.
/etc/systemd/system/multi-user.target.wants/dhcpcd@enp0s3.service
/var/lib/dhcpcd/dhcpcd-enp0s3.lease Deleting them worked. Sorry for that.
Offline
Pages: 1