mirror of
https://github.com/linkedin/school-of-sre
synced 2026-01-07 00:58:03 +00:00
* System calls and signals * Changing the url for Linux basics Co-authored-by: Seema Shivaram Upadhya <seupadhy@seupadhy-ld1.linkedin.biz>
18 lines
1.4 KiB
Markdown
18 lines
1.4 KiB
Markdown
# Conclusion
|
|
|
|
One of the main goals of a SRE is to improve the reliability of high scale systems. Inorder to achieve this, a basic understanding of the internal workings of a system is necessary.
|
|
|
|
Getting to know about how signals work is important since they play a big role in the lifecycle of processes. We see the use of signals in a range of operations on processes : from creating a process to killing a process. Knowledge of signals is important especially when handling them in programs. If you anticipate an event that causes signals, you can define a handler function and tell the operating system to run it when that particular type of signal arrives.
|
|
|
|
Understanding system calls is especially useful to SRE's while debugging any Linux process. System calls provide precise knowledge of the internal functionalities of an operating system. It gives an in-depth understanding for programmers about C library functions which implement system calls at a lower level. With the use of *strace* command, one may easily debug slow or hung processes.
|
|
|
|
|
|
|
|
# Further Reading
|
|
<https://www.oreilly.com/library/view/understanding-the-linux/0596002130/ch01s06.html>
|
|
|
|
<https://jvns.ca/blog/2021/04/03/what-problems-do-people-solve-with-strace/>
|
|
|
|
<https://medium.com/@akhandmishra/important-system-calls-every-programmer-should-know-8884381ceadb>
|
|
|
|
<https://www.brendangregg.com/blog/2014-05-11/strace-wow-much-syscall.html> |