KR100748497B1 - Memory management method for running mode - Google Patents

Memory management method for running mode Download PDF

Info

Publication number
KR100748497B1
KR100748497B1 KR1020010024114A KR20010024114A KR100748497B1 KR 100748497 B1 KR100748497 B1 KR 100748497B1 KR 1020010024114 A KR1020010024114 A KR 1020010024114A KR 20010024114 A KR20010024114 A KR 20010024114A KR 100748497 B1 KR100748497 B1 KR 100748497B1
Authority
KR
South Korea
Prior art keywords
memory
management method
free
capacity
mode
Prior art date
Application number
KR1020010024114A
Other languages
Korean (ko)
Other versions
KR20020084965A (en
Inventor
권대익
Original Assignee
엘지전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 엘지전자 주식회사 filed Critical 엘지전자 주식회사
Priority to KR1020010024114A priority Critical patent/KR100748497B1/en
Publication of KR20020084965A publication Critical patent/KR20020084965A/en
Application granted granted Critical
Publication of KR100748497B1 publication Critical patent/KR100748497B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Abstract

본 발명은 실행 모드에서의 메모리 관리 방법에 관한 것으로, 특히 실행 상태의 시스템에서 프리 메모리보다 큰 메모리를 요구하는 새로운 하드웨어 디바이스가 붙는 경우 동적으로 메모리를 할당하여 해당 디바이스의 사용이 가능하도록 한 실행 모드에서의 메모리 관리 방법에 관한 것이다. 이를 위하여 본 발명은 시스템의 전원이 온 되면 부트 로더를 시작하고 메모리의 시작 번지로 점프하는 제 1단계와, 시스템의 운영 체계와 루트 파일 시스템과 각종 응용 프로그램을 메모리에 로딩하는 제 2단계와, 동작 모드시 프리 메모리보다 더 큰 메모리 용량의 디바이스 실행 요구가 존재하는지 판단하는 제 3단계와, 상기 판단 결과, 존재하면 현재 시스템에서 사용하고 있지 않은 디바이스를 일시적으로 아웃시키고 남는 프리 메모리를 이용해서 큰 메모리 용량의 디바이스를 동작시키는 제 4단계와, 상기 제 4단계의 동작이 끝나면 상기 제 4단계의 메모리에서 아웃된 디바이스를 다시 메모리에 로드하고 큰 메모리 용량의 디바이스는 아웃시키는 제 5단계로 수행한다.The present invention relates to a memory management method in a run mode, and particularly in a run state system, when a new hardware device requiring a larger memory than the free memory is attached, a run mode in which a memory is dynamically allocated to enable the use of the device. Memory management method in. To this end, the present invention provides a first step of starting a boot loader and jumping to a start address of a memory when the system is powered on, a second step of loading an operating system, a root file system, and various applications into a memory; A third step of determining whether there is a device execution request with a larger memory capacity than the free memory in the operation mode; and if the determination result exists, temporarily out of a device not currently being used in the system and using the free memory remaining. A fourth step of operating a device having a memory capacity; and a fifth step of loading a device out of the memory of the fourth step into the memory again after the operation of the fourth step is finished, and out of the device having a large memory capacity; .

Description

실행 모드에서의 메모리 관리 방법{MEMORY MANAGEMENT METHOD FOR RUNNING MODE}MEMORY MANAGEMENT METHOD FOR RUNNING MODE

도 1은 종래 시스템에서의 부트 및 메모리 상태를 보인 예시도.1 is an exemplary view showing a boot and a memory state in a conventional system.

도 2는 종래의 실행 상태에서의 메모리 사용 상태를 보인 예시도.2 is an exemplary view showing a memory usage state in a conventional execution state.

도 3은 본 발명 실행 상태에서의 메모리 사용 상태를 보인 예시도.Figure 3 is an exemplary view showing a memory use state in the execution state of the present invention.

도 4는 본 발명 실행 모드에서의 메모리 관리 방법의 절차를 보인 흐름도.4 is a flow chart showing the procedure of the memory management method in the execution mode of the present invention.

본 발명은 실행 모드에서의 메모리 관리 방법에 관한 것으로, 특히 실행 상태의 시스템에서 프리 메모리보다 큰 메모리를 요구하는 새로운 하드웨어 디바이스가 붙는 경우 동적으로 메모리를 할당하여 해당 디바이스의 사용이 가능하도록 한 실행 모드에서의 메모리 관리 방법에 관한 것이다. The present invention relates to a memory management method in a run mode, and particularly in a run state system, when a new hardware device requiring a larger memory than the free memory is attached, a run mode in which a memory is dynamically allocated to enable the use of the device. Memory management method in.

최근까지, 시스템에서 메모리를 최대한 적게 사용하는 방법에 대한 연구는 계속되고 있다. 그러나 여전히 시스템에서 메모리를 최대한 적게 사용하기 위하여처음 부팅시에 시스템에 연결된 하드웨어를 초기화하고 그에 맞는 디바이스 드라이브를 메모리에 로딩시키는 방법을 사용한다.Until recently, research on how to use the least amount of memory in a system continued. However, in order to use the least amount of memory in the system, the first method of booting is to initialize the hardware connected to the system and load the appropriate device driver into memory.

이와 같은 종래의 메모리 관리 방법을 첨부한 도면을 참조하여 설명하면 다음과 같다.The conventional memory management method will be described below with reference to the accompanying drawings.

도 1은 종래 시스템에서의 부트 및 메모리 상태를 보인 예시도로서, 이에 도시된 바와 같이 시스템의 전원이 들어오면 부트 롬에서 메모리의 특정 번지로 점프를 하고 그곳에서 부트 로더가 있는 번지로 다시 점프를 한다.1 is a diagram illustrating a boot and memory state in a conventional system. As shown in FIG. 1, when a system is powered on, the boot ROM jumps to a specific address of a memory and jumps back to the address where a boot loader is located. do.

여기서 부트 로더는 시스템의 운영 체계와, 루트 파일 시스템과 응용 프로그램을 메모리에 올린다.Here the boot loader loads the system's operating system, root file system and applications into memory.

도 2는 종래의 실행 상태에서의 메모리 사용 상태를 보인 예시도로서, 이에 도시된 바와 같이 메모리에는 디바이스 또는 각종 응용 프로그램 모듈이 로드되어 있다.FIG. 2 is a diagram illustrating a memory use state in a conventional execution state, in which a device or various application program modules are loaded in the memory.

즉, 상기와 같이 동작하는 종래 기술은 시스템이 부팅 된 후에는 남아있는 프리 메모리보다 메모리를 많이 차지하는 디바이스가 붙는 경우 메모리가 부족해서 붙일 수 없다는 메시지만 남길뿐 메모리를 많이 차지하는 디바이스는 로드할 수 없다는 문제점이 있었다.In other words, the prior art that operates as described above, if a device that takes up more memory than the remaining free memory is attached after the system is booted, only a message indicating that it cannot run because of insufficient memory is left, and a device that takes up a lot of memory cannot be loaded. There was a problem.

따라서, 본 발명은 상기와 같은 문제점을 감안하여 창안한 것으로, 실행 상태의 시스템에서 프리 메모리보다 큰 메모리를 요구하는 새로운 하드웨어 디바이스가 붙는 경우 동적으로 메모리를 할당하여 해당 디바이스의 사용이 가능하도록 한 실행 모드에서의 메모리 관리 방법을 제공함에 그 목적이 있다.Accordingly, the present invention has been made in view of the above problems, and in the case of a new hardware device requiring a larger memory than the free memory in the running system, the memory is dynamically allocated to enable the use of the device. Its purpose is to provide a memory management method in mode.

상기와 같은 목적을 달성하기 위한 본 발명은 시스템의 전원이 온 되면 부트 로더를 시작하고 메모리의 시작 번지로 점프하는 제 1단계와, 시스템의 운영 체계와 루트 파일 시스템과 각종 응용 프로그램을 메모리에 로딩하는 제 2단계와, 동작 모드시 프리 메모리보다 더 큰 메모리 용량의 디바이스 실행 요구가 존재하는지 판단하는 제 3단계와, 상기 판단 결과, 존재하면 현재 시스템에서 사용하고 있지 않은 디바이스를 일시적으로 아웃시키고 남는 프리 메모리를 이용해서 큰 메모리 용량의 디바이스를 동작시키는 제 4단계와, 상기 제 4단계의 동작이 끝나면 상기 제 4단계의 메모리에서 아웃된 디바이스를 다시 메모리에 로드하고 큰 메모리 용량의 디바이스는 아웃시키는 제 5단계로 수행되는 것을 특징으로 한다.In order to achieve the above object, the present invention provides a first step of starting a boot loader and jumping to a start address of a memory when a system is powered on, and loading an operating system, a root file system, and various applications of the system into a memory. And a third step of determining whether there is a device execution request with a larger memory capacity than the free memory in the operation mode, and if it exists, temporarily turning off and leaving a device not currently used in the system. A fourth step of operating a device having a large memory capacity by using a pre-memory; and after the operation of the fourth step is finished, the device which has been removed from the memory of the fourth step is loaded back into the memory and the device having a large memory capacity is Characterized in that the fifth step.

이하, 본 발명에 의한 실행모드에서의 메모리 관리 방법에 대한 작용 및 효과를 첨부한 도면을 참조하여 상세히 설명하면 다음과 같다.Hereinafter, operations and effects of the memory management method in the execution mode according to the present invention will be described in detail with reference to the accompanying drawings.

도 4는 본 발명 실행 모드에서의 메모리 관리 방법의 절차를 보인 흐름도로서, 이에 도시된 바와 같이 시스템의 전원이 온 되면 부트 로더를 시작하고 메모리의 시작 번지로 점프하는 제 1단계와, 시스템의 운영 체계와 루트 파일 시스템과 각종 응용 프로그램을 메모리에 로딩하는 제 2단계와, 동작 모드시 프리 메모리보다 더 큰 메모리 용량의 디바이스 실행 요구가 존재하는지 판단하는 제 3단계와, 상기 판단 결과, 존재하면 현재 시스템에서 사용하고 있지 않은 디바이스를 일시적으로 아웃시키고 남는 프리 메모리를 이용해서 큰 메모리 용량의 디바이스를 동작시키는 제 4단계와, 상기 제 4단계의 동작이 끝나면 상기 제 4단계의 메모리에서 아웃된 디바이스를 다시 메모리에 로드하고 큰 메모리 용량의 디바이스는 아웃시키는 제 5단계로 수행되는 것으로, 이와 같이 구성된 본 발명의 동작을 설명하면 다음과 같다.4 is a flowchart illustrating a method of managing a memory in an execution mode of the present invention. As shown in FIG. 4, when the system is powered on, a first step of starting a boot loader and jumping to a start address of a memory is provided. A second step of loading a system, a root file system, and various application programs into a memory; a third step of determining whether a device execution request with a larger memory capacity than that of the free memory exists in the operation mode; A fourth step of operating a device having a large memory capacity using a free memory remaining after temporarily out of a device not being used in the system; and after the operation of the fourth step is finished, Is loaded into memory and the large memory capacity device is out. As it will be described the operation of the present invention constructed in this manner as follows.

먼저, 시스템에 전원이 들어오면 부트 로더를 시작하고 부트롬에서 메모리의 시작 번지로 점프한다.First, when the system is powered up, it starts the boot loader and jumps to the starting address of the memory in the bootrom.

그리고, 플래쉬 메모리에 저장되어 있는 시스템의 운영 체계와 루트 파일 시스템과 시스템에 붙어 있는 각종 디바이스 드라이버와 응용 프로그램을 메모리에 로딩한다.The operating system, root file system, and various device drivers and applications attached to the system are loaded into the memory stored in the flash memory.

여기서, 도 3은 본 발명 실행 상태에서의 메모리 사용 상태를 보인 예시도로서, 이에 도시된 바와 같이 촤측 그림은 일반적인 메모리 사용을 나타낸 것이고, 우측의 그림은 실행 상태에서의 메모리 사용을 나타낸 것이다.3 is an exemplary view showing a memory use state in the execution state of the present invention. As shown in the figure, the left figure shows general memory use, and the right figure shows memory use in the run state.

우선, 동작 모드시 프리 메모리보다 더 많은 메모리를 요구하는 디바이스 또는 응용 프로그램이 실행되려고 하는지를 판단하여 그 판단 결과, 남아 있는 프리 메모리보다 더 많은 메모리를 요구하는 새로운 하드웨어 디바이스 또는 응용 프로그램이 붙는 경우를 보자.First, determine whether a device or an application program that requires more memory than free memory in the operation mode is about to be executed. As a result of this determination, a new hardware device or application that requires more memory than the remaining free memory is attached. .

그러면, 도 3에 도시된 바와 같이 메모리에서 현재 사용되고 있지 않은 디바이스와 중요하지 않은 디비이스를 모자라는 메모리 만큼 모듈을 일시적으로 아웃 즉, 지금 당장 메모리에는 올라와 있지만 현재 시스템에서 사용하고 있지 않은 디바이스 또는 응용 프로그램 모듈을 일시적으로 아웃시킨다.Then, as shown in FIG. 3, the module is temporarily out of the memory as much as a device that is not currently used in memory and a memory that lacks insignificant devices, that is, a device or an application that is currently in memory but is not currently used by the system. Temporarily turn off the program module.

그리고, 남는 프리 메모리를 이용해서 메모리 사용량이 많은 디바이스를 동작시키고 동작이 완료되면 메모리에서 아웃된 모듈은 다시 메모리에 로드하고, 메모리 용량이 큰 디바이스는 아웃시킨다.Then, the remaining free memory is used to operate a device that consumes a lot of memory, and when the operation is completed, the module taken out of the memory is loaded back into the memory, and the device having a large memory capacity is turned out.

다시 말하면, 실행 상태의 시스템에서 부팅이 끝난 후 남아 있는 프리 메모리보다 큰 메모리를 요구하는 새로운 하드웨어 디바이스가 붙는 경우 동적으로 메모리를 할당하여, 즉 메모리에 올라와 있지만 현재 시스템에서 사용하고 있지 않은 디바이스 또는 응용 프로그램 모듈을 아웃시킴으로써 큰 메모리 용량의 해당 디바이스 사용이 가능하도록 한 것이다.In other words, if a new hardware device attaches to the running system that requires more memory than the remaining free memory after booting up, it dynamically allocates memory, that is, a device or application that is on memory but not currently in use by the system. Out of the program module allows the use of the device with large memory capacity.

이상에서 상세히 설명한 바와 같이 본 발명은, 적은 메모리 용량을 가진 시스템에서도 메모리를 많이 차지하는 디바이스를 사용할 수 있고, 즉 시스템에서 사용할 수 있는 최적의 디바이스를 효율적으로 사용할 수 있음에 따라 속도면에서도 뛰어나게 되는 효과가 있다.As described in detail above, the present invention can use a device that takes up a lot of memory even in a system having a small memory capacity, that is, an effect of being excellent in speed as it can efficiently use an optimal device that can be used in the system. There is.

Claims (1)

시스템의 전원이 온 되면 부트 로더를 시작하고 메모리의 시작 번지로 점프하는 제 1단계와, 시스템의 운영 체계와 루트 파일 시스템과 각종 응용 프로그램을 메모리에 로딩하는 제 2단계와, 동작 모드시 프리 메모리보다 더 큰 메모리 용량의 디바이스 실행 요구가 존재하는지 판단하는 제 3단계와, 상기 판단 결과, 존재하면 현재 시스템에서 사용하고 있지 않은 디바이스를 일시적으로 아웃시키고 남는 프리 메모리를 이용해서 큰 메모리 용량의 디바이스를 동작시키는 제 4단계와, 상기 제 4단계의 동작이 끝나면 상기 제 4단계의 메모리에서 아웃된 디바이스를 다시 메모리에 로드하고 큰 메모리 용량의 디바이스는 아웃시키는 제 5단계로 이루어진 것을 특징으로 하는 실행 모드에서의 메모리 관리 방법.A first step of starting the boot loader when the system is powered on and jumping to the start address of the memory, a second step of loading the system operating system, the root file system and various applications into the memory, and free memory in the operation mode. A third step of determining whether a device execution request with a larger memory capacity exists, and if it is found, a device having a large memory capacity is temporarily selected by using a free memory that is temporarily out of a device not currently being used in the system. An execution mode comprising a fourth step of operating and a fifth step of reloading the device out of the memory of the fourth step into the memory after the operation of the fourth step is finished, and the device having a large memory capacity is turned off Memory management in
KR1020010024114A 2001-05-03 2001-05-03 Memory management method for running mode KR100748497B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020010024114A KR100748497B1 (en) 2001-05-03 2001-05-03 Memory management method for running mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020010024114A KR100748497B1 (en) 2001-05-03 2001-05-03 Memory management method for running mode

Publications (2)

Publication Number Publication Date
KR20020084965A KR20020084965A (en) 2002-11-16
KR100748497B1 true KR100748497B1 (en) 2007-08-13

Family

ID=27703566

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020010024114A KR100748497B1 (en) 2001-05-03 2001-05-03 Memory management method for running mode

Country Status (1)

Country Link
KR (1) KR100748497B1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR960003190A (en) * 1994-06-15 1996-01-26 가네꼬 히사시 Method and system for downloading data to network node
JPH101996A (en) * 1996-06-18 1998-01-06 Hitachi Home Tec Ltd Scald preventing device for sanitary washing equipment
JPH102004A (en) * 1996-06-17 1998-01-06 Sekisui House Ltd Horizontal brace arranging method of dwelling house
JPH102006A (en) * 1996-06-18 1998-01-06 Ykk Architect Prod Kk Fence structure of building
KR20040041776A (en) * 2002-11-11 2004-05-20 한국전자통신연구원 Method for downloading file by using usb in the boot loader
KR20060044211A (en) * 2004-11-11 2006-05-16 주식회사 팬택 Method for booting of portable terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR960003190A (en) * 1994-06-15 1996-01-26 가네꼬 히사시 Method and system for downloading data to network node
JPH102004A (en) * 1996-06-17 1998-01-06 Sekisui House Ltd Horizontal brace arranging method of dwelling house
JPH101996A (en) * 1996-06-18 1998-01-06 Hitachi Home Tec Ltd Scald preventing device for sanitary washing equipment
JPH102006A (en) * 1996-06-18 1998-01-06 Ykk Architect Prod Kk Fence structure of building
KR20040041776A (en) * 2002-11-11 2004-05-20 한국전자통신연구원 Method for downloading file by using usb in the boot loader
KR20060044211A (en) * 2004-11-11 2006-05-16 주식회사 팬택 Method for booting of portable terminal

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
10-1996-0003190
10-2004-0041776
10-2006-0044211

Also Published As

Publication number Publication date
KR20020084965A (en) 2002-11-16

Similar Documents

Publication Publication Date Title
US7356680B2 (en) Method of loading information into a slave processor in a multi-processor system using an operating-system-friendly boot loader
RU2435200C2 (en) Fast booting operating system from off state
KR20070108060A (en) System executing a fast boot wake-up
WO2011116621A1 (en) Electronic device, configurable component and configuration information storage method thereof
CN109408122B (en) Equipment starting method, electronic equipment and computer storage medium
US20040193864A1 (en) System and method for actively booting a computer system
EP1324198A3 (en) Processor and method of booting same
US7565385B2 (en) Embedded garbage collection
US7240190B2 (en) Resource compatible system for computer system reads compressed filed stored in legacy BIOS and decompresses file using legacy support operating system driver
JP2002288104A (en) Computer system, and method and program for its resource assigning
KR100451777B1 (en) Operating vehicular processor-based systems
KR100748497B1 (en) Memory management method for running mode
CN109976958B (en) Method and device for improving firmware test efficiency and storage medium
US7577814B1 (en) Firmware memory management
KR100640389B1 (en) Method for executing application in an apparatus having nand flash memory and the apparatus
EP1524597A1 (en) Method for managing threads in a memory-constrained system
US7562209B2 (en) Supporting different instruction set architectures during run time
GB2452735A (en) Loading and executing programs in parallel during boot loading
JP5579085B2 (en) Computer, computer restart method, and restart program
CN111176689B (en) Information processing method and electronic device
CN109656720B (en) Address space allocation method and device
JP2003029975A (en) Os start-up method, os start-up system and program for os start-up
US6604195B1 (en) Method and apparatus to use non-volatile read/write memory for bootstrap code and processes
US20050149939A1 (en) Method and device for managing resources in a computer system
CN110121688B (en) Method for judging loader and electronic system

Legal Events

Date Code Title Description
N231 Notification of change of applicant
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
LAPS Lapse due to unpaid annual fee