• Apfeltalk ändert einen Teil seiner Allgemeinen Geschäftsbedingungen (AGB), das Löschen von Useraccounts betreffend.
    Näheres könnt Ihr hier nachlesen: AGB-Änderung
  • Was gibt es Schöneres als den Mai draußen in der Natur mit allen Sinnen zu genießen? Lasst uns teilhaben an Euren Erlebnissen und macht mit beim Thema des Monats Da blüht uns was! ---> Klick

bash CPU-Auslastung >70%

mYwaY

Erdapfel
Registriert
10.11.16
Beiträge
5
Moin,

ich hoffe ihr könnt mir helfen.

Meine bash sorgt für eine CPU-Auslastung von über 70%, mein Lüfter läuft dauerhaft auf Hochtouren, mein Akku wird schnell heiß und hält auch nicht sonderlich lange.

Sampling process 5211 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling bash (pid 5211) every 1 millisecond
Process: bash [5211]
Path: /bin/bash
Load Address: 0x10768c000
Identifier: bash
Version: 103
Code Type: X86-64
Parent Process: ??? [5210]

Date/Time: 2016-11-11 00:06:08.886 +0100
Launch Time: 2016-11-07 11:58:00.889 +0100
OS Version: Mac OS X 10.12.1 (16B2555)
Report Version: 7
Analysis Tool: /usr/bin/sample
----

Call graph:
2626 Thread_350219 DispatchQueue_1: com.apple.main-thread (serial)
2626 szone_malloc_should_clear (in libsystem_malloc.dylib) + 400 [0x7fffa317e522]
2626 _sigtramp (in libsystem_platform.dylib) + 26 [0x7fffa3209bba]
2626 ??? (in bash) load address 0x10768c000 + 0x379d5 [0x1076c39d5]
2626 ??? (in bash) load address 0x10768c000 + 0x627e [0x10769227e]
2626 ??? (in bash) load address 0x10768c000 + 0x4bfba [0x1076d7fba]
2626 ??? (in bash) load address 0x10768c000 + 0x5cb67 [0x1076e8b67]
2626 ??? (in bash) load address 0x10768c000 + 0x5cac7 [0x1076e8ac7]
2626 ??? (in bash) load address 0x10768c000 + 0x4cb04 [0x1076d8b04]
2626 malloc (in libsystem_malloc.dylib) + 24 [0x7fffa317d2b0]
2626 malloc_zone_malloc (in libsystem_malloc.dylib) + 107 [0x7fffa317e332]
2626 szone_malloc_should_clear (in libsystem_malloc.dylib) + 179 [0x7fffa317e445]
2626 _os_unfair_lock_lock_slow (in libsystem_platform.dylib) + 181 [0x7fffa320c465]
2626 _os_unfair_lock_recursive_abort (in libsystem_platform.dylib) + 23 [0x7fffa320cb44]

Total number in stack (recursive counted multiple, when >=5):

Sort by top of stack, same collapsed (when >= 5):
_os_unfair_lock_recursive_abort (in libsystem_platform.dylib) 2626

Binary Images:
0x10768c000 - 0x10770ffff +bash (103) <266DD3A0-BA2D-38F8-8A93-8022F6053CD0> /bin/bash
0x113f38000 - 0x113f75287 dyld (0.0 - ???) <13A9466A-2576-3ABB-AD9D-D6BC16439B8F> /usr/lib/dyld
0x7fffa1a01000 - 0x7fffa1a02ff3 libSystem.B.dylib (1238) <CFC3669C-FB44-3A51-8815-1E84A168F3C5> /usr/lib/libSystem.B.dylib
0x7fffa1b78000 - 0x7fffa1b78ff3 libauto.dylib (187) <5BBF6A00-CC76-389D-84E7-CA88EDADE683> /usr/lib/libauto.dylib
0x7fffa1b99000 - 0x7fffa1befff7 libc++.1.dylib (307.4) <BEE86868-F831-384C-919E-2B286ACFE87C> /usr/lib/libc++.1.dylib
0x7fffa1bf0000 - 0x7fffa1c1afff libc++abi.dylib (307.2) <1CEF8ABB-7E6D-3C2F-8E0A-E7884478DD23> /usr/lib/libc++abi.dylib
0x7fffa265f000 - 0x7fffa2690ff3 libncurses.5.4.dylib (51) <6B88562D-86DB-3EFA-8C55-0148C30DC642> /usr/lib/libncurses.5.4.dylib
0x7fffa270b000 - 0x7fffa2ae0127 libobjc.A.dylib (706) <47104A1B-13E8-369F-BC36-27FF465809FD> /usr/lib/libobjc.A.dylib
0x7fffa2f20000 - 0x7fffa2f24ff7 libcache.dylib (79) <84E55656-FDA9-3B29-9E4F-BE31B2C0AA3C> /usr/lib/system/libcache.dylib
0x7fffa2f25000 - 0x7fffa2f2ffff libcommonCrypto.dylib (60092.20.1) <31040F10-5E57-3B9C-8D5B-33AD87D1BEE8> /usr/lib/system/libcommonCrypto.dylib
0x7fffa2f30000 - 0x7fffa2f37fff libcompiler_rt.dylib (62) <486BDE52-81B4-3446-BD72-23977CAE556F> /usr/lib/system/libcompiler_rt.dylib
0x7fffa2f38000 - 0x7fffa2f40fff libcopyfile.dylib (138) <0DA49B77-56EC-362D-98FF-FA78CFD986D6> /usr/lib/system/libcopyfile.dylib
0x7fffa2f41000 - 0x7fffa2fc3fdb libcorecrypto.dylib (442.20.2) <2684CC01-087E-33E2-8219-AAA3BBD9BFD7> /usr/lib/system/libcorecrypto.dylib
0x7fffa2fc4000 - 0x7fffa2ff6fff libdispatch.dylib (703.20.1) <877B505D-826C-3246-84F7-0F850636039E> /usr/lib/system/libdispatch.dylib
0x7fffa2ff7000 - 0x7fffa2ffcff3 libdyld.dylib (421.2) <7BFA3476-6210-3BCB-8CE8-9B952F87BD84> /usr/lib/system/libdyld.dylib
0x7fffa2ffd000 - 0x7fffa2ffdffb libkeymgr.dylib (28) <09CD7CA6-46D2-3A9F-B9F1-7C4CA5CA0D68> /usr/lib/system/libkeymgr.dylib
0x7fffa300b000 - 0x7fffa300bfff liblaunch.dylib (972.20.3) <7AB2E2EA-8B47-3420-87CE-5EE18A4EEE49> /usr/lib/system/liblaunch.dylib
0x7fffa300c000 - 0x7fffa3011fff libmacho.dylib (894) <1EAE5ADD-490C-3B1F-9F97-447BA8E0E90F> /usr/lib/system/libmacho.dylib
0x7fffa3012000 - 0x7fffa3014ff3 libquarantine.dylib (85) <F3E47D7C-8776-327C-9426-DD7DEB30DBDD> /usr/lib/system/libquarantine.dylib
0x7fffa3015000 - 0x7fffa3016ffb libremovefile.dylib (45) <C4FC07FF-ED86-382E-B06F-33C34718080C> /usr/lib/system/libremovefile.dylib
0x7fffa3017000 - 0x7fffa302fff7 libsystem_asl.dylib (349.1.1) <F0987490-8427-367F-B302-A05A7D61FEBF> /usr/lib/system/libsystem_asl.dylib
0x7fffa3030000 - 0x7fffa3030ff7 libsystem_blocks.dylib (67) <B8C3701D-5A91-3D35-999D-2DC8D5393525> /usr/lib/system/libsystem_blocks.dylib
0x7fffa3031000 - 0x7fffa30befef libsystem_c.dylib (1158.20.4) <5F9531F5-EDA3-3D25-A827-3E0FD6B392BA> /usr/lib/system/libsystem_c.dylib
0x7fffa30bf000 - 0x7fffa30c2ffb libsystem_configuration.dylib (888.20.5) <CDC55FCB-C1FC-350D-A919-5DBCFC835B63> /usr/lib/system/libsystem_configuration.dylib
0x7fffa30c3000 - 0x7fffa30c6fff libsystem_coreservices.dylib (41.2) <5DE691C6-7EE6-3210-895D-9EA3ECBC09B4> /usr/lib/system/libsystem_coreservices.dylib
0x7fffa30c7000 - 0x7fffa30dfffb libsystem_coretls.dylib (121.1.1) <8F7E9B12-400D-3276-A9C5-4546B0258554> /usr/lib/system/libsystem_coretls.dylib
0x7fffa30e0000 - 0x7fffa30e6fff libsystem_dnssd.dylib (765.20.4) <28E52C39-DF10-340F-A3EC-C0119AF6361F> /usr/lib/system/libsystem_dnssd.dylib
0x7fffa30e7000 - 0x7fffa3110fff libsystem_info.dylib (503) <C686B834-5E7D-382C-AF6E-44AB78EE83E2> /usr/lib/system/libsystem_info.dylib
0x7fffa3111000 - 0x7fffa3133ff7 libsystem_kernel.dylib (3789.21.3) <EC53F92A-0DFA-3027-A220-414A01F17B2E> /usr/lib/system/libsystem_kernel.dylib
0x7fffa3134000 - 0x7fffa317bfe7 libsystem_m.dylib (3121.4) <7F86C291-B105-31C1-9923-90EBAB22B73F> /usr/lib/system/libsystem_m.dylib
0x7fffa317c000 - 0x7fffa319aff7 libsystem_malloc.dylib (116) <F9840080-4C2C-3F3B-8087-7C738F12A1C7> /usr/lib/system/libsystem_malloc.dylib
0x7fffa319b000 - 0x7fffa31f2ff3 libsystem_network.dylib (856.20.4) <2BAFB24F-999C-3148-BDD8-F28E05F716F7> /usr/lib/system/libsystem_network.dylib
0x7fffa31f3000 - 0x7fffa31fcff3 libsystem_networkextension.dylib (563.20.3) <971DD3AD-D17A-32FF-95DE-0A5A979E68AE> /usr/lib/system/libsystem_networkextension.dylib
0x7fffa31fd000 - 0x7fffa3206ff3 libsystem_notify.dylib (165.20.1) <EAD023A2-AD3F-31C8-9489-274B9A42DA61> /usr/lib/system/libsystem_notify.dylib
0x7fffa3207000 - 0x7fffa320ffe7 libsystem_platform.dylib (126.1.2) <2F2D6A81-C36C-353D-B27B-A6643A32375E> /usr/lib/system/libsystem_platform.dylib
0x7fffa3210000 - 0x7fffa321aff7 libsystem_pthread.dylib (218.20.1) <46375095-4731-3034-9D87-396DE95FC697> /usr/lib/system/libsystem_pthread.dylib
0x7fffa321b000 - 0x7fffa321eff7 libsystem_sandbox.dylib (592.21.2) <2D42A2BF-A7AF-352A-A821-D8F6E85A63AC> /usr/lib/system/libsystem_sandbox.dylib
0x7fffa321f000 - 0x7fffa3220fff libsystem_secinit.dylib (24) <A54B8FEF-E792-3C54-8E0B-E80A376662F2> /usr/lib/system/libsystem_secinit.dylib
0x7fffa3221000 - 0x7fffa3228fff libsystem_symptoms.dylib (532.1.1) <8FB7CA37-79EF-3651-B5B9-B5E1E0947067> /usr/lib/system/libsystem_symptoms.dylib
0x7fffa3229000 - 0x7fffa3249ff7 libsystem_trace.dylib (518.20.8) <C029B910-A65F-35F6-B194-B933B454EAB4> /usr/lib/system/libsystem_trace.dylib
0x7fffa324a000 - 0x7fffa324fffb libunwind.dylib (35.3) <9F7C2AD8-A9A7-3DE4-828D-B0F0F166AAA0> /usr/lib/system/libunwind.dylib
0x7fffa3250000 - 0x7fffa3279ff7 libxpc.dylib (972.20.3) <85EB25FD-218F-38EE-9E69-391CC8EBE6C5> /usr/lib/system/libxpc.dylib
Sample analysis of process 5211 written to file /dev/stdout

Ich habe einige Eintragungen zum Beginn meines Studiums in die bash getätigt und nutze den Terminal viel zum kompilieren von Quellcodes und Ausführen von Bytecodes. Daher habe ich etwas Bedenken, die bash über die Aktivitätsanzeige einfach zu beenden.

Eventuell könnte es relevant sein, da der Lüfter erst seit kurzem so läuft, dass ich mein Macbook Pro auf 16 GB RAM aufgerüstet habe. Speicher aber problemlos erkannt und läuft eigentlich, von der Leistung her, einwandfrei.

Habt ihr einen Tipp, wie ich an die Sache rangehen kann?! Bin für jeden Hinweis dankbar!

Gruß
 

iErkocher

Alkmene
Registriert
13.09.13
Beiträge
32
Genau das gleiche Phänomen hatte ich gestern auch. Ich hatte mich schon gewundert, warum der Akku rasend schnell leer wird und irgendwann habe ich bemerkt dass der Lüfter auf Hochtouren läuft, ohne dass ich etwas mache. Allerdings habe ich den Prozess dann einfach abgeschossen. Ohne irgendwelche spürbaren Nebeneffekte. Ich vermute, dass einfach eine Session des Terminals hängen geblieben ist.
 

Wuchtbrumme

Golden Noble
Registriert
03.05.10
Beiträge
21.526
Da ich 10.12 nicht nutze, hier noch ein paar zusätzliche Infos, an was "heißer Akku", "laufende Lüfter" und "schnell leerwerdende Batterie" üblicherweise liegen
-defekter Akku (gerade bei über 2-3 Jahre alten Geräten)
-verhaspelter SMC (SMC-Reset durchführen sh. Apple-Support-Seite)
 

mYwaY

Erdapfel
Registriert
10.11.16
Beiträge
5
Genau das gleiche Phänomen hatte ich gestern auch. Ich hatte mich schon gewundert, warum der Akku rasend schnell leer wird und irgendwann habe ich bemerkt dass der Lüfter auf Hochtouren läuft, ohne dass ich etwas mache. Allerdings habe ich den Prozess dann einfach abgeschossen. Ohne irgendwelche spürbaren Nebeneffekte. Ich vermute, dass einfach eine Session des Terminals hängen geblieben ist.

Hast du denn auch Pfade in der bash stehen, worauf der Terminal zugreifen soll?! Funktionieren diese noch?

Da ich 10.12 nicht nutze, hier noch ein paar zusätzliche Infos, an was "heißer Akku", "laufende Lüfter" und "schnell leerwerdende Batterie" üblicherweise liegen
-defekter Akku (gerade bei über 2-3 Jahre alten Geräten)
-verhaspelter SMC (SMC-Reset durchführen sh. Apple-Support-Seite)

Ich hoffe nicht, dass mein Akku defekt ist. Ich probiere mal den SMC-Reset, vielleicht hilft es ja was.
 

mYwaY

Erdapfel
Registriert
10.11.16
Beiträge
5
SMC-Reset hat geholfen :)

Allerdings schluckt die kernel_task gut 1 GB RAM...hat jemand dazu Erfahrungen?