분류 전체보기
-
[리눅스 커널] Performance - CPU optimization basicLinux/kernel 2023. 11. 6. 01:18
글의 참고 - https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/monitoring_and_managing_system_status_and_performance/configuring-an-operating-system-to-optimize-cpu-utilization_monitoring-and-managing-system-status-and-performance - https://www.redhat.com/sysadmin/tune-linux-tips - https://zhuanlan.zhihu.com/p/98556131 - https://manpages.ubuntu.com/manpages/impish/man1/lst..
-
[리눅스 커널] cache - basicLinux/kernel 2023. 11. 4. 01:58
글의 참고 - https://zhuanlan.zhihu.com/p/102326184 - https://blog.naver.com/lucky777a/100045967545 글의 전제 - 밑줄로 작성된 글은 강조 표시를 의미한다. - 그림 출처는 항시 그림 아래에 표시했다. 글의 내용 - Overview : 아래와 같은 코드가 있다고 가정하자. // https://zhuanlan.zhihu.com/p/102326184 int arr[10][128]; for (i = 0; i < 10; i++) for (j = 0; j < 128; j++) arr[i][j] = 1; : 그리고, 위 코드에서 몇 가지만 수정해 보았다. // https://zhuanlan.zhihu.com/p/102326184 int arr[1..
-
[리눅스 커널] Scheduler - BasicLinux/kernel 2023. 10. 30. 16:28
글의 참고 - https://blogs.oracle.com/linux/post/task-priority - https://www.kernel.org/doc/html/v5.9/core-api/rbtree.html - http://www.wowotech.net/process_management/447.html - https://www.cnblogs.com/LoyenWang/p/12249106.html - https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/monitoring_and_managing_system_status_and_performance/tuning-scheduling-policy_monitoring-and-..
-
[리눅스 커널] Interrupt - TaskletLinux/kernel 2023. 10. 28. 20:47
글의 참고 - https://lwn.net/Articles/830964/ - http://www.wowotech.net/irq_subsystem/tasklet.html - https://lwn.net/Articles/239633/ - https://stackoverflow.com/questions/7106050/what-context-does-the-scheduler-code-run-in 글의 전제 - 밑줄로 작성된 글은 강조 표시를 의미한다. - 그림 출처는 항시 그림 아래에 표시했다. 글의 내용 - Overview " 리눅스에서 인터럽트 처리 과정인 2가지로 나뉜다. 1. top-half : 하드웨어 인터럽트 핸들러를 의미한다. 2. bottom-half : 인터럽트가 발생하면 일단 모든 인터럽트를 ..
-
[리눅스 커널] Synchronization - Per-CPU OverviewLinux/kernel 2023. 10. 18. 19:47
글의 참고 - https://www.kernel.org/doc/Documentation/this_cpu_ops.txt - https://www.makelinux.net/ldd3/chp-8-sect-5.shtml - http://books.gigatux.nl/mirror/kerneldevelopment/0672327201/ch11lev1sec10.html - http://www.wowotech.net/linux_kenrel/per-cpu.html - https://zhuanlan.zhihu.com/p/260986194 - https://thinkiii.blogspot.com/2014/05/a-brief-introduction-to-per-cpu.html - http://books.gigatux.nl/mir..
-
[리눅스 커널] Interrupt - SoftirqLinux/kernel 2023. 10. 18. 19:46
글의 참고 - http://www.wowotech.net/irq_subsystem/soft-irq.html - https://lwn.net/Articles/831678/ - http://www.wowotech.net/irq_subsystem/workqueue.html - https://lwn.net/Articles/520076/ - https://lwn.net/Articles/274695/ - https://stackoverflow.com/questions/20887918/why-softirq-is-used-for-highly-threaded-and-high-frequency-uses - https://zhuanlan.zhihu.com/p/480267700 글의 전제 - 밑줄로 작성된 글은 강조 표시를 ..
-
[리눅스 커널] Synchronization - RCU OverviewLinux/kernel 2023. 10. 16. 03:26
글의 참고 - https://www.kernel.org/doc/Documentation/RCU/Design/Data-Structures/Data-Structures.html - https://pdos.csail.mit.edu/6.828/2020/readings/rcu-decade-later.pdf - https://lwn.net/Articles/262464/ - https://en.wikipedia.org/wiki/Read-copy-update - http://www.wowotech.net/kernel_synchronization/rcu_fundamentals.html - http://www.wowotech.net/kernel_synchronization/223.html - https://www.kern..
-
[리눅스 커널] Synchronization - sequential locksLinux/kernel 2023. 10. 11. 00:04
글의 참고 - Linux Device Driver 3rd Edition - UnderStanding The Linux Kernel 3rd Edition - Linux Kernel Development (3rd Edition) - https://mirrors.edge.kernel.org/pub/linux/kernel/people/christoph/gelato/gelato2005-paper.pdf 글의 전제 - 밑줄로 작성된 글은 강조 표시를 의미한다. - 그림 출처는 항시 그림 아래에 표시했다. 글의 내용 - Overview : seqlock 은 2.6 커널에 등장한 lock-free 동기화 메커니즘이다. `sequence counter`를 통해서 동기화를 구현한다. readers 들은 크리티컬 섹션에 `..