Как убить процесс
Добавлено: 2016-04-01 12:01:28
Если проблема не решается сама, значит она неразрешима
https://forum.lissyara.su/

Neus писал(а):killall
Код: Выделить всё
root@F3ja:/usr/home/elimelech # killall
usage: killall [-delmsqvz] [-help] [-I] [-j jail]
[-u user] [-t tty] [-c cmd] [-SIGNAL] [cmd]...
At least one option or argument to specify processes must be given.
а по смарт характеристика винт будет жить ещё долго- кому верить?Neus писал(а):Б...Ь!!! мануал читать будешь???
killall -9 имя_процесса
кстати, винту походу пиздец...
xD -?LBV писал(а):xD
Код: Выделить всё
root@F3ja:/usr/home/elimelech # smartctl -a /dev/ada0
smartctl 6.4 2015-06-04 r4109 [FreeBSD 10.3-RELEASE i386] (local build)
Copyright (C) 2002-15, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Hitachi Travelstar 5K100
Device Model: HTS541010G9SA00
Serial Number: MP2ZXAX0KVPMMS
Firmware Version: MBZOC60R
User Capacity: 100 030 242 816 bytes [100 GB]
Sector Size: 512 bytes logical/physical
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA/ATAPI-7 T13/1532D revision 1
Local Time is: Fri Apr 1 13:44:58 2016 EEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x05) Offline data collection activity
was aborted by an interrupting command from host.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 645) seconds.
Offline data collection
capabilities: (0x5b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 66) minutes.
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000b 100 100 062 Pre-fail Always - 0
2 Throughput_Performance 0x0005 100 100 040 Pre-fail Offline - 0
3 Spin_Up_Time 0x0007 253 253 033 Pre-fail Always - 0
4 Start_Stop_Count 0x0012 093 093 000 Old_age Always - 11346
5 Reallocated_Sector_Ct 0x0033 100 100 005 Pre-fail Always - 0
7 Seek_Error_Rate 0x000b 100 100 067 Pre-fail Always - 0
8 Seek_Time_Performance 0x0005 100 100 040 Pre-fail Offline - 0
9 Power_On_Hours 0x0012 019 019 000 Old_age Always - 35578
10 Spin_Retry_Count 0x0013 100 100 060 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 095 095 000 Old_age Always - 8716
191 G-Sense_Error_Rate 0x000a 100 100 000 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 097 097 000 Old_age Always - 633
193 Load_Cycle_Count 0x0012 078 078 000 Old_age Always - 227890
194 Temperature_Celsius 0x0002 144 144 000 Old_age Always - 38 (Min/Max 14/59)
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 0
197 Current_Pending_Sector 0x0022 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0008 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x000a 200 253 000 Old_age Always - 0
SMART Error Log Version: 1
ATA Error Count: 1168 (device log contains only the most recent five errors)
CR = Command Register [HEX]
FR = Features Register [HEX]
SC = Sector Count Register [HEX]
SN = Sector Number Register [HEX]
CL = Cylinder Low Register [HEX]
CH = Cylinder High Register [HEX]
DH = Device/Head Register [HEX]
DC = Device Command Register [HEX]
ER = Error register [HEX]
ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.
Error 1168 occurred at disk power-on lifetime: 28346 hours (1181 days + 2 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
10 51 01 01 4d a5 e0 Error: IDNF 1 sectors at LBA = 0x00a54d01 = 10833153
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
25 20 01 01 4d a5 e0 08 00:05:31.900 READ DMA EXT
25 20 01 00 00 00 e0 08 00:05:31.900 READ DMA EXT
25 20 01 00 00 00 e0 08 00:05:31.900 READ DMA EXT
25 20 01 01 00 00 e0 08 00:05:31.900 READ DMA EXT
25 20 01 00 00 00 e0 08 00:05:31.900 READ DMA EXT
Error 1167 occurred at disk power-on lifetime: 28346 hours (1181 days + 2 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
10 51 01 01 4d a5 e0 Error: IDNF 1 sectors at LBA = 0x00a54d01 = 10833153
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
25 20 01 01 4d a5 e0 08 00:01:10.300 READ DMA EXT
25 20 01 00 00 00 e0 08 00:01:10.300 READ DMA EXT
25 20 01 00 00 00 e0 08 00:01:10.300 READ DMA EXT
25 20 01 00 00 00 e0 08 00:01:10.300 READ DMA EXT
25 20 01 00 00 00 e0 08 00:01:10.300 READ DMA EXT
Error 1166 occurred at disk power-on lifetime: 28310 hours (1179 days + 14 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 17 4b b5 97 e4 Error: UNC 23 sectors at LBA = 0x0497b54b = 77051211
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 40 22 b5 97 e4 00 01:09:40.700 READ DMA
c8 00 40 22 b5 97 e4 00 01:09:36.500 READ DMA
c8 00 01 ea bd ac e4 00 01:09:36.500 READ DMA
c8 00 08 5a b2 ac e4 00 01:09:36.500 READ DMA
c8 00 01 ba bb ac e4 00 01:09:36.500 READ DMA
Error 1165 occurred at disk power-on lifetime: 28310 hours (1179 days + 14 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 17 4b b5 97 e4 Error: UNC 23 sectors at LBA = 0x0497b54b = 77051211
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 40 22 b5 97 e4 00 01:09:36.500 READ DMA
c8 00 01 ea bd ac e4 00 01:09:36.500 READ DMA
c8 00 08 5a b2 ac e4 00 01:09:36.500 READ DMA
c8 00 01 ba bb ac e4 00 01:09:36.500 READ DMA
c8 00 40 22 46 ab e4 00 01:09:36.500 READ DMA
Error 1164 occurred at disk power-on lifetime: 28308 hours (1179 days + 12 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 17 4b b5 97 e4 Error: UNC 23 sectors at LBA = 0x0497b54b = 77051211
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 40 22 b5 97 e4 00 00:00:48.900 READ DMA
c8 00 40 22 b5 97 e4 00 00:00:44.100 READ DMA
c8 00 01 ea bd ac e4 00 00:00:44.100 READ DMA
c8 00 08 5a b2 ac e4 00 00:00:44.000 READ DMA
c8 00 01 ba bb ac e4 00 00:00:44.000 READ DMA
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended offline Completed without error 00% 35435 -
# 2 Extended offline Completed without error 00% 34557 -
# 3 Short offline Completed without error 00% 33259 -
# 4 Extended offline Completed without error 00% 32935 -
# 5 Extended offline Aborted by host 90% 32548 -
# 6 Short offline Completed without error 00% 32543 -
# 7 Short offline Completed without error 00% 32543 -
# 8 Extended offline Completed without error 00% 32543 -
# 9 Short offline Completed without error 00% 28608 -
#10 Extended offline Interrupted (host reset) 70% 28434 -
#11 Extended offline Completed without error 00% 28434 -
#12 Short offline Completed without error 00% 28311 -
#13 Short offline Completed without error 00% 26501 -
#14 Short offline Completed without error 00% 26501 -
#15 Short offline Completed without error 00% 26408 -
#16 Extended offline Completed without error 00% 26408 -
#17 Short offline Completed without error 00% 25275 -
#18 Short offline Completed without error 00% 21927 -
#19 Short offline Completed without error 00% 20670 -
#20 Extended offline Interrupted (host reset) 70% 19914 -
#21 Short offline Completed without error 00% 19911 -
Warning! SMART Selective Self-Test Log Structure error: invalid SMART checksum.
SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.что мало? 10 лет ноутбукуAlex Keda писал(а):11 тыщщ раз запускался/останаввался....
писец таки подкрадывается ...и ведь почти не заметно ))UNC (Uncorrectable Data Error) — Не удалось скорректировать данные избыточным кодом, блок признан нечитаемым. Может быть как следствием нарушения контрольной суммы данных, так и следствием физического повреждения HDD
IDNF (ID Not Found) — Не идентифицирован сектор. Обычно говорит о разрушении микрокода или формата нижнего уровня HDD. У исправных винчестеров такая ошибка выдается при попытке обратиться к несуществующему адресу.
Код: Выделить всё
dd if=/dev/null of=/killall ещё не освоил, жду подходящий зависший професс, тогда и попробую ваши рекомендацииNeus писал(а):Если бы не over 1k ошибок -- жить и жить.
killall освоил?
1) Я почитал тему, посмотрел автора и понял что тут будет весело). Не ошибся).killall ещё не освоил
Elimelech писал(а):killall ещё не освоил, жду подходящий зависший професс, тогда и попробую ваши рекомендацииNeus писал(а):Если бы не over 1k ошибок -- жить и жить.
killall освоил?
А где вы видите over 1k ошибок? что советуете уже менять HDD?
Код: Выделить всё
4 Start_Stop_Count 0x0012 093 093 000 Old_age Always - 11346Не надо "детей" плохому учить) пускай сначала TERM попробует, если результата нет - тогда да. KILLkillall -9 имя_процесса
Код: Выделить всё
killall processnameКод: Выделить всё
killall -9 processnameКод: Выделить всё
9 Power_On_Hours 0x0012 019 019 000 Old_age Always - 35578да он 'шо молодой, всего 10 летADRE писал(а):он устал короче конкретно.Код: Выделить всё
9 Power_On_Hours 0x0012 019 019 000 Old_age Always - 35578
да я такой весёлый человек: увлекаюсь каббалой (админ сайта: meirbruk.net), freeBSD, и т.п. Со мной не заскучаете! А вот сисадмином не отказался бы работать, там говорят ребята хорошие бабки зашибают.Amadeus писал(а):1) Я почитал тему, посмотрел автора и понял что тут будет весело). Не ошибся).killall ещё не освоил
Если не секрет, вы по профессии "unix системный администратор" не работаете, надеюсь?)
Не надо вам туда) ой не надо. Помогите профессии - лучше пускай это останется только "увлечением" *)А вот сисадмином не отказался бы работать, там говорят ребята хорошие бабки зашибают
Вы понимайте в чем прикол) он же вобьет в консоль) лучше не надо). Благо что на стационаре эксперименты ставитНашёл более простой и лучший способ. Он даже лучше чем kill и killall вместе взятые. Не буду томить, вот он