SohyeonKim(365)
-
[FreeBSD] The Process and Thread Structure
The Process StructureIn addition to the references to the substructures, the process entry shown in Figure 4.1 contains the following categories of information: • Process identification: the PID and the parent PID • Signal state: signals pending delivery and summary of signal actions• Tracing: process tracing information• Timers: real-time timer and CPU-utilization counters The process substruc..
2024.07.21 -
[FreeBSD] PID and Process State
4.2 Process StateEvery process in the system is assigned a unique identifier termed the process identifier (PID). PIDs are the common mechanism used by applications and by the kernel to reference processes. PIDs are used by applications when the latter send a signal to a process and when receiving the exit status from a deceased process. Two PIDs are of special importance to each process: the PI..
2024.07.21 -
[FreeBSD] Process Management, Multiprogramming and Scheduling
Part II: ProcessesChapter 4.1 Introduction to Process ManagementA process is a program in execution. (ํ๋ก์ธ์ค์ ์ ์. ์ ํํ๊ฒ ๋ฐ์ง์๋ฉด, ํ๋ก๊ทธ๋จ๊ณผ๋ ๊ตฌ๋ถ๋๋ค.)A process has an address space containing a mapping of its program’s object code and global variables. It also has a set of kernel resources that it can name and on which it can operate using system calls. These resources include its credentials, signal state, a..
2024.07.16 -
[FreeBSD] Kernel Tracing Facilities, DTrace and KTR
3.8 Kernel Tracing FacilitiesOperating-system kernels are large and complex pieces of software, encompassing thousands of lines of mainly C code, organized into dozens of subsystems and including hundreds of device drivers. Understanding what is happening within the operating system while it is running is important not only to developers of the code but also to the much larger group of people wh..
2024.07.16 -
[PIM] CPU/DPU Programming Code Review
PrIM BenchmarksVertor Addition Code Reivew https://github.com/SohyeonKim-dev/prim-benchmarks GitHub - SohyeonKim-dev/prim-benchmarks: PrIM (Processing-In-Memory benchmarks) is the first benchmark suite for a real-world prPrIM (Processing-In-Memory benchmarks) is the first benchmark suite for a real-world processing-in-memory (PIM) architecture. PrIM is developed to evaluate, analyze, and charact..
2024.07.16 -
[FreeBSD] Resource Services
3.7 Resource ServicesAll systems have limits imposed by their hardware architecture and configuration to ensure reasonable operation and to keep users from accidentally (or maliciously) creating resource shortages. (์ค์ค.. ๋ชจ๋ ์์คํ ์ ํ๊ณ๋ฅผ ๊ฐ์ง๋ค by ์์ ์ฑ)At a minimum, the hardware limits must be imposed on processes that run on the system. It is usually desirable to limit processes further, below these har..
2024.07.15 -
[FreeBSD] Timing Services
3.6 Timing ServicesThe kernel provides several different timing services to processes. These services include timers that run in real time and timers that run only while a process is executing. Real TimeThe system’s time offset since January 1, 1970, Universal Coordinated Time (UTC), also known as the Epoch, is returned by the system call gettimeofday. (ํ์ ์ธ๊ณ์) Most modern processors (includin..
2024.07.15 -
[FreeBSD] Memory Management Services
3.5 Memory-Management ServicesThe memory organization and layout associated with a FreeBSD process is shown in Figure 3.3. Each process begins execution with three memory segments: text, data, and stack. The data segment is divided into initialized data and uninitialized data (also known as bss). The text is read-only and is normally shared by all processes executing the file, whereas the data a..
2024.07.14 -
[wrtn] ๋คผํผ GenAI ์์ด๋์ดํค ๊ฒฝํฌ๋ํ๊ต ์์
2024. 05. 24 Friday๊ฒฝํฌ๋ ๋คผํผ ์์ด๋์ดํค ์์ ๐๋คผํผ ์บ ํผ์ค๋ฆฌ๋ ํ๋ ์ค๊ฐ์ฅ ์ค์ํ โจ ๊ต๋ด ์์ด๋์ดํค ์์ ์ ๊ฐ์ตํ์์ต๋๋ค :5์์ ์งํํ ์์ ๋ํ์ง๋ง, ์ํ ๊ธฐ๊ฐ ๋์์ ๋ฆฌ๋ฅผ ๋ชปํด๋๋ค๊ฐ, ์ด์ ์์ผ wrap-up์ ํด๋ด ๋๋ค.. ๐ฅณ๊ฒฐ๋ก : ์ฑ๊ณต์ ์ผ๋ก ๋ง๋ฌด๋ฆฌ๋์ด์, ๋ ๋คํ์ด๊ณ ๋ฟ๋ฏํ๋ค์ - ๐ฅณ์ค๋นํ๋ ๋์ ์ด์์ง ํ์๋ ์์ฃผ ํ๊ณ ,,ํ์ ์ค์์ ๋งํ๋ ๋ฐ๋์ ํ์ํ๋ถ๋ค๊ป๋์๋ ๋ง์ด ๋ฐ๊ณ , ๋คผํผ์์๋ ์ ๊ทน์ ์ผ๋ก ๋์์ฃผ์ ์ "์ ๋ง" ์ด๋ ต๊ฒ ์ด๋ฆฐ ๋ํ์๊ฑฐ๋ฑ์ .. . ์ด๋ฒ ๊ฒฝํ์ผ๋ก, ๊ต๋ด์์ ํ์ฌ๋ฅผ ์งํํ ๋์๋๋ฐ.๋.์ ๋จผ์ ํ์ํ๋ฅผ ์ปจํํด์ผ ํ๋๊ตฌ๋ .๋ผ์ ๋ฆฌ๊ฒ ๊นจ๋ฌ์๊ตฌ์ .. . โ ๏ธ ๐ ๊ทธ๋๋ ์ค์ค๋ก ๊ต๋ด ๋ํ๋ฅผ ๋ง๋ค์ด๋ณด๊ณ , ๊ตฌ์ฒด์ ์ธ ๊ธฐํ ..
2024.07.14 -
[FreeBSD] Clock Interrupts
3.4 Clock InterruptsThe system is driven by a clock that interrupts at regular intervals. Each interrupt is referred to as a tick. On the PC, the clock ticks 1000 times per second. At each tick, the system updates the current time of day as well as user-process and system timers. Handling 1000 interrupts per second can be time consuming. To reduce the interrupt load, the kernel computes the num..
2024.07.10