mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Hardware

Reply
 
Thread Tools
Old 2016-12-19, 23:53   #45
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

126748 Posts
Default

OK, I might have it fixed. Time to be embarrassed... When I elected to move from one script cycling via a while loop, to two scripts calling each other, so I could make changes while the other ran, I failed to let them finish after calling and set up a recursive system with no escape until I rebooted. At least that's how it looks ATM.

I'll know more tomorrow, but for now, there is no longer an appreciable lag.
EdH is offline   Reply With Quote
Old 2016-12-20, 00:16   #46
Mark Rose
 
Mark Rose's Avatar
 
"/X\(โ€˜-โ€˜)/X\"
Jan 2013
https://pedan.tech/

24×199 Posts
Default

Quote:
Originally Posted by EdH View Post
OK, I might have it fixed. Time to be embarrassed... When I elected to move from one script cycling via a while loop, to two scripts calling each other, so I could make changes while the other ran, I failed to let them finish after calling and set up a recursive system with no escape until I rebooted. At least that's how it looks ATM.

I'll know more tomorrow, but for now, there is no longer an appreciable lag.
I will admit to having done the same in the past.
Mark Rose is offline   Reply With Quote
Old 2016-12-20, 02:29   #47
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

22×13×107 Posts
Default

Well, unfortunately, time has shown that it is not fixed. Now, after running well for several hours, it won't talk to me for about 25 seconds, even after the scripts have been interrupted.

In the earlier top runs, I'm assuming the sshd entries are from the clients checking for assignments, but I don't know what all the lsb_release entries are for. lsb appears to reference Linux Standard Base, but are they also something to do with the client requests?

Is there something in the interrupts that stands out as overloading, with all the high numbers in the troubled watch reference?

Thanks...
EdH is offline   Reply With Quote
Old 2016-12-20, 03:08   #48
Mark Rose
 
Mark Rose's Avatar
 
"/X\(โ€˜-โ€˜)/X\"
Jan 2013
https://pedan.tech/

24×199 Posts
Default

Seeing all those lsb_release commands running at once seems odd to me. It would be worth while figuring out what is calling it. When you see them, can you run `pstree` when they appear, perhaps in a second terminal? You may need to install the psmisc package first.
Mark Rose is offline   Reply With Quote
Old 2016-12-20, 04:51   #49
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

126748 Posts
Default

Quote:
Originally Posted by Mark Rose View Post
Seeing all those lsb_release commands running at once seems odd to me. It would be worth while figuring out what is calling it. When you see them, can you run `pstree` when they appear, perhaps in a second terminal? You may need to install the psmisc package first.
pstree is available, but right now my scripts have crashed on the nfs part of a c129. I'm having to run msieve manually to finish prior to the next run of the RP3. I'll probably have to wait for the morning, since I'm not seeing many lsb_release msgs while it's idling.
EdH is offline   Reply With Quote
Old 2016-12-20, 07:28   #50
xilman
Bamboozled!
 
xilman's Avatar
 
"๐’‰บ๐’ŒŒ๐’‡ท๐’†ท๐’€ญ"
May 2003
Down not across

22·3·983 Posts
Default

Quote:
Originally Posted by EdH View Post
I failed to let them finish after calling and set up a recursive system with no escape until I rebooted. At least that's how it looks ATM.
Here's what the old-timers do to avoid a reboot. I'll approach it in stages so you can see what's happening.

First, find the process IDs of the things you want to stop: ps ax | grep errant_process_name | colrm 6. This will also find the grep process itself, which should be harmless but inelegant, so a grep -v grep | could be added before the colrm.

Next, take those PIDs and send them a STOP signal. This prevents them from running but doesn't terminate them so there will be no recursive calls. Note the use of back-ticks to interpolate the result of a sub-command into the command line.
kill -STOP `ps ax | grep errant_process_name | colrm 7`

Finally, terminate them with extreme prejudice, kill -KILL `ps ax | grep errant_process_name | colrm 7`, and you should now have a clean running system.
xilman is offline   Reply With Quote
Old 2016-12-20, 08:24   #51
ldesnogu
 
ldesnogu's Avatar
 
Jan 2008
France

3×199 Posts
Default

Didn't know about colrm, nice!

Regarding killing processes with their name, I use the pkill comand. Very handy.
ldesnogu is offline   Reply With Quote
Old 2016-12-20, 11:06   #52
xilman
Bamboozled!
 
xilman's Avatar
 
"๐’‰บ๐’ŒŒ๐’‡ท๐’†ท๐’€ญ"
May 2003
Down not across

22×3×983 Posts
Default

Quote:
Originally Posted by ldesnogu View Post
Didn't know about colrm, nice!

Regarding killing processes with their name, I use the pkill comand. Very handy.
I'm an old-timer. colrm appeared in Unix a very long time before pkill showed up.
xilman is offline   Reply With Quote
Old 2016-12-20, 11:50   #53
ldesnogu
 
ldesnogu's Avatar
 
Jan 2008
France

3·199 Posts
Default

Quote:
Originally Posted by xilman View Post
I'm an old-timer. colrm appeared in Unix a very long time before pkill showed up.
Indeed, I found that colrm has been written in 1974
ldesnogu is offline   Reply With Quote
Old 2016-12-20, 12:01   #54
Mark Rose
 
Mark Rose's Avatar
 
"/X\(โ€˜-โ€˜)/X\"
Jan 2013
https://pedan.tech/

24·199 Posts
Default

`colrm` is also new to me. Thanks!
Mark Rose is offline   Reply With Quote
Old 2016-12-20, 15:25   #55
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

22×13×107 Posts
Default

Thanks guys! In my case, wouldn't just terminating the current script cause all calling ones to finally close? I hope I have that fixed anyway.

I'm no longer seeing the full screen of lsb_release processes. Only a couple show up at a time. Maybe they were linked to my script issue.

But, it's still taking more than 15 seconds to communicate with it.

I looked for bash instances via my new knowledge and there are 7 running. I can only account for 2. But, 7 shouldn't be a trouble, I wouldn't think.

I will play some more with my new tools when I have a little more time.

Thanks all.
EdH is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
raspberry pi3 and srxsieve speed pepi37 Hardware 6 2018-03-20 18:01
Runs Prime95 on Raspberry Pi primeawesome Hardware 6 2018-02-14 08:19
Which SIMD flag to use for Raspberry Pi BrainStone Mlucas 14 2017-11-19 00:59
Raspberry Pi lavalamp Hobbies 10 2017-08-16 00:37
Raspberry Pi sloppyonefoot Software 1 2017-07-02 08:48

All times are UTC. The time now is 04:06.


Fri Jul 7 04:06:41 UTC 2023 up 323 days, 1:35, 0 users, load averages: 1.68, 1.59, 1.35

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

โ‰  ยฑ โˆ“ รท ร— ยท โˆ’ โˆš โ€ฐ โŠ— โŠ• โŠ– โŠ˜ โŠ™ โ‰ค โ‰ฅ โ‰ฆ โ‰ง โ‰จ โ‰ฉ โ‰บ โ‰ป โ‰ผ โ‰ฝ โŠ โА โŠ‘ โŠ’ ยฒ ยณ ยฐ
โˆ  โˆŸ ยฐ โ‰… ~ โ€– โŸ‚ โซ›
โ‰ก โ‰œ โ‰ˆ โˆ โˆž โ‰ช โ‰ซ โŒŠโŒ‹ โŒˆโŒ‰ โˆ˜ โˆ โˆ โˆ‘ โˆง โˆจ โˆฉ โˆช โจ€ โŠ• โŠ— ๐–• ๐–– ๐–— โŠฒ โŠณ
โˆ… โˆ– โˆ โ†ฆ โ†ฃ โˆฉ โˆช โІ โŠ‚ โŠ„ โŠŠ โЇ โŠƒ โŠ… โŠ‹ โŠ– โˆˆ โˆ‰ โˆ‹ โˆŒ โ„• โ„ค โ„š โ„ โ„‚ โ„ต โ„ถ โ„ท โ„ธ ๐“Ÿ
ยฌ โˆจ โˆง โŠ• โ†’ โ† โ‡’ โ‡ โ‡” โˆ€ โˆƒ โˆ„ โˆด โˆต โŠค โŠฅ โŠข โŠจ โซค โŠฃ โ€ฆ โ‹ฏ โ‹ฎ โ‹ฐ โ‹ฑ
โˆซ โˆฌ โˆญ โˆฎ โˆฏ โˆฐ โˆ‡ โˆ† ฮด โˆ‚ โ„ฑ โ„’ โ„“
๐›ข๐›ผ ๐›ฃ๐›ฝ ๐›ค๐›พ ๐›ฅ๐›ฟ ๐›ฆ๐œ€๐œ– ๐›ง๐œ ๐›จ๐œ‚ ๐›ฉ๐œƒ๐œ— ๐›ช๐œ„ ๐›ซ๐œ… ๐›ฌ๐œ† ๐›ญ๐œ‡ ๐›ฎ๐œˆ ๐›ฏ๐œ‰ ๐›ฐ๐œŠ ๐›ฑ๐œ‹ ๐›ฒ๐œŒ ๐›ด๐œŽ๐œ ๐›ต๐œ ๐›ถ๐œ ๐›ท๐œ™๐œ‘ ๐›ธ๐œ’ ๐›น๐œ“ ๐›บ๐œ”