linux timer interrupt 에 대해서 궁금합니다.

trymp의 이미지


리눅스에서 timer interrupt 라는 것이 tick 주기로 계속 인터럽트가 발생하잖아요.

LOC 라고 해서 Local interrupt 가 각 core 마다 도는 걸로 알고 있습니다.

질문1) 각각의 LOC 가 1초에 HZ 수만큼 tick 이 발생하는것이 맞나요?

timer interrupt 가 각 Local CPU 에서 돌고 있다면,

질문2) jiffies 이라는 시간변수는 누가 갱신을 해 주는 것인가요?

로컬이 아닌 전역 타이머 인터럽트가 또 있나요?

timer interrupt 라는 것이 햇갈려서 질문 드립니다.

shint의 이미지


- CPU 마다 timer interrupt 가 호출한다고 합니다.
- 자세한 내용은 책 이나. 검색 자료를 참고해보세요.

linuxkernel 에서 Timer와 jiffies
http://blog.naver.com/PostView.nhn?blogId=ryutuna&logNo=100167671737

리눅스에서 jiffies 값을 이용하여 시간 계산하기
http://veenvalu.tistory.com/63

Kernel Timer Systems
https://elinux.org/Kernel_Timer_Systems

kernel 시간관리
http://hbisland.tistory.com/entry/kernel-%EC%8B%9C%EA%B0%84%EA%B4%80%EB%A6%AC

jiffies
http://www.morenice.kr/120

높은 LOC 인터럽트의 원인은 무엇입니까?
https://translate.google.co.kr/translate?hl=ko&sl=en&tl=ko&u=https%3A%2F%2Fserverfault.com%2Fquestions%2F86226%2Fwhats-the-cause-of-high-loc-interrupts

Linux에서의 SMP 선호도 및 적절한 인터럽트 처리
https://translate.googleusercontent.com/translate_c?depth=1&hl=ko&rurl=translate.google.co.kr&sl=en&sp=nmt4&tl=ko&u=http://www.alexonlinux.com/smp-affinity-and-proper-interrupt-handling-in-linux&xid=17259,15700019,15700124,15700149,15700186,15700190,15700201,15700214&usg=ALkJrhiHn9o1mvDnk6nzTrIj_JyjGoOm3w

리눅스 로컬 타이머 인터럽트 란 무엇입니까?
https://translate.google.co.kr/translate?sl=en&tl=ko&js=y&prev=_t&hl=ko&ie=UTF-8&u=https%3A%2F%2Fstackoverflow.com%2Fquestions%2F10567214%2Fwhat-are-linux-local-timer-interrupts&edit-text=

sys clock variable tick rate
https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/sys-clock-variable-tick-rate

RTOS 160MHz and Delay time
https://bbs.espressif.com/viewtopic.php?t=1661

System Workbench for STM32
http://www.openstm32.org/forumthread1651

How to choose best TICK_RATE_HZ?
https://www.freertos.org/FreeRTOS_Support_Forum_Archive/February_2009/freertos_How_to_choose_best_TICK_RATE_HZ_3017025.html
https://www.freertos.org/FreeRTOS_Support_Forum_Archive/May_2009/freertos_Tick_interrupt_3279018.html

Understanding the Linux Kernel: From I/O Ports to Process Management
https://books.google.co.kr/books?id=h0lltXyJ8aIC&pg=PT256&lpg=PT256&dq=Local+interrupt+tick&source=bl&ots=gP2sJ05fMY&sig=BTv_3l5aW14hRx3bywxZ0LUysJg&hl=ko&sa=X&ved=2ahUKEwiJrKun98rdAhWDvrwKHYoKArUQ6AEwAnoECAgQAQ#v=onepage&q=Local%20interrupt%20tick&f=false

The tick broadcast framework
https://lwn.net/Articles/574962/

Dropping the timer tick ? for real this time
https://lwn.net/Articles/659490/

Local interrupt tick

Interrupts, Spin Locks, and Preemption
http://www.cs.columbia.edu/~jae/4118/L14-interrupt-spinlock.html

[9/9] KVM: x86: Add support for local interrupt requests from userspace
https://lore.kernel.org/patchwork/patch/587046/

[11/17] irqchip: RISC-V Local Interrupt Controller Driver
https://lore.kernel.org/patchwork/patch/796344/

Pentium Processor System Architecture
https://books.google.co.kr/books?id=TVzjEZg1--YC&pg=PA337&lpg=PA337&dq=Local+interrupt&source=bl&ots=iC3ENQv0I5&sig=64i9GsZHMHYdXGjlbdMkIxAH3SU&hl=ko&sa=X&ved=2ahUKEwjb7f-I9crdAhUBurwKHVrDD98Q6AEwBnoECAQQAQ#v=onepage&q=Local%20interrupt&f=false

Local IRQ
http://www.iamroot.org/xe/index.php?mid=Kernel&document_srl=20231

Local Interrupt Disabling
https://www.halolinux.us/kernel-reference/local-interrupt-disabling.html

What's the cause of high LOC interrupts?
https://serverfault.com/questions/86226/whats-the-cause-of-high-loc-interrupts

Interrupts -2- (irq chip)
http://jake.dothome.co.kr/interrupts-2/

Chapter 7. Interrupts and Interrupt Handlers
https://notes.shichao.io/lkd/ch7/

What are Linux Local timer interrupts?
https://stackoverflow.com/questions/10567214/what-are-linux-local-timer-interrupts

Local interrupt

----------------------------------------------------------------------------
젊음'은 모든것을 가능하게 만든다.

매일 1억명이 사용하는 프로그램을 함께 만들어보고 싶습니다.
정규 근로 시간을 지키는. 야근 없는 회사와 거래합니다.

각 분야별. 좋은 책'이나 사이트' 블로그' 링크 소개 받습니다. shintx@naver.com

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.