1b.app
Link copied -

day cron not running

Answers:


Pereginyak Alexander
Oneboxconsulting (integrator) wrote:
day cron does not run.
can you tell me why?

1) Because someone, I think a.evseev, ran this cron as root.
2) the server obviously does not have enough CPU resources. with 2 threads, the average load is about 4 (load average: 3.81, 4.15, 4.29).
Obviously a resource issue.
Also, the lack of wsap is not very good.
Lack of resources causes cron to run for a long time.
08.12.2020, 17:37
Original comment available on version: ru

Перегиняк Александр
Oneboxconsulting (интегратор)

Tasun Sergey Vladimirovich
Employee wrote:
1) Because someone, I think a.evseev, ran this cron as root

it was me. though not under root, but under a.evseev through the sudo -s command. didn't think it mattered. I'll keep that in mind and won't do it again

Tasun Sergey Vladimirovich
Employee wrote:
2) the server obviously does not have enough CPU resources. with 2 threads, the average load is about 4 (load average: 3.81, 4.15, 4.29).
Obviously a resource issue.

I will contact the admins for an increase in system resources

Tasun Sergey Vladimirovich
Employee wrote:
Also, the lack of wsap is not very good.

If you can enlighten what it is and why, I would be very grateful!
in general, thank you very much for your comment! we will tune the server
08.12.2020, 20:33
Original comment available on version: ru

Cron starts up, but does not have time to work out.
Today the cron was launched by hand and worked, Work time: 19,304.44 s
19.304.44s = 5.36 hours.
At night, the crown does not have so much time, because. the software update script is launched and "kills" all running crons.

Pereginyak Alexander
Oneboxconsulting (integrator) wrote:
it was me. though not under root, but under a.evseev through the sudo -s command

By running sudo -s you have promoted yourself to root.
If you are running anything in a box, it must be from the correct user, because there may be unexpected problems.
If you manually run the cron, then wait for it to complete.

Pereginyak Alexander
Oneboxconsulting (integrator) wrote:
If you can enlighten what it is and why, I would be very grateful!

If short:
SWAP (swap) is a virtual memory mechanism in which part of the data from random access memory (RAM) is moved to storage on the HDD (hard disk), SSD (solid state drive).
In Linux, RAM (RAM, random access memory) is divided into sections called pages. Swapping is a process during which pages of memory are copied to a specially configured disk partition called swap space (the swap partition can be either a file or a hard disk partition) to free up RAM. The combined sizes of physical memory and swap partition is the amount of virtual memory available.
If there is a desire to delve deeper into the essence, then here is an article that, in my opinion, very well explains some of the intricacies of working with memory in Linux.
https://habr.com/ru/company/flant/blog/348324/
09.12.2020, 00:59
Original comment available on version: ru

Перегиняк Александр
Oneboxconsulting (интегратор)

Tasun Sergey Vladimirovich
Employee wrote:
Cron starts up, but does not have time to work out.
Today the cron was launched by hand and worked, Work time: 19,304.44 s
19.304.44s = 5.36 hours.
At night, the crown does not have so much time, because. the software update script is launched and "kills" all running crons.

Pereginyak Alexander
Oneboxconsulting (integrator) wrote:
it was me. though not under root, but under a.evseev through the sudo -s command

By running sudo -s you have promoted yourself to root.
If you are running anything in a box, it must be from the correct user, because there may be unexpected problems.
If you manually run the cron, then wait for it to complete.

Pereginyak Alexander
Oneboxconsulting (integrator) wrote:
If you can enlighten what it is and why, I would be very grateful!

If short:
SWAP (swap) is a virtual memory mechanism in which part of the data from random access memory (RAM) is moved to storage on the HDD (hard disk), SSD (solid state drive).
In Linux, RAM (RAM, random access memory) is divided into sections called pages. Swapping is a process during which pages of memory are copied to a specially configured disk partition called swap space (the swap partition can be either a file or a hard disk partition) to free up RAM. The combined sizes of physical memory and swap partition is the amount of virtual memory available.
If there is a desire to delve deeper into the essence, then here is an article that, in my opinion, very well explains some of the intricacies of working with memory in Linux.
https://habr.com/ru/company/flant/blog/348324/

Thanks! you painted everything very well! If possible - throw off the link to the tip)))
09.12.2020, 11:04
Original comment available on version: ru

Перегиняк Александр
Oneboxconsulting (интегратор)

Pereginyak Alexander
Oneboxconsulting (integrator) wrote:
Thanks! you painted everything very well! If possible - throw off the link to the tip)))

Sergey, I hope you did not take this comment of mine as trolling. I'm quite serious! It is very pleasant to read comments in which you are given answers to questions that have long been tormented!
10.12.2020, 16:13
Original comment available on version: ru

Well no.
I'm just thinking how to get a tip..))
10.12.2020, 16:54
Original comment available on version: ru

Перегиняк Александр
Oneboxconsulting (интегратор)

Tasun Sergey Vladimirovich
Employee wrote:
Well no.
I'm just thinking how to get a tip..))

Well, there was such a practice that a link to pay a tip was sent) . maybe it can be resurrected...
10.12.2020, 18:54
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment