hereinafter , embodiments of the invention will be described referring to the drawings . fig1 is a schematic configuration diagram of an information processing device according to a first embodiment of the invention , and fig2 is a flowchart describing an operation of the information processing device . the information processing device according to the first embodiment of the invention includes , as shown in fig1 , a cpu 101 ( the information processing section ), a built - in memory 102 ( the first storage section ), an external memory 103 ( the second storage memory ), a bus master device 104 that is not a cpu ( the information processing section ), a cache measuring unit 106 that measures the state of the built - in memory 102 , a control section 105 ( the first change section , the transfer section , and the second change section ), an internal bus 108 that connects the cpu 101 and the built - in memory 102 , and an external bus 107 that connects the built - in memory 102 , the bus master device 104 , and the external memory 103 . in addition , the control section 105 is configured to include the first change section for changing the memory configuration of the built - in memory 102 when memory use efficiency is expected to improve by monitoring measurement values of the cache measuring means 106 , the transfer section for transferring data of the built - in memory 102 and the external memory 103 that is being used by the cpu 101 and the bus master device 104 when the memory configuration is changed , and the second change section for causing the cpu 101 and the bus master device 104 to use the area of the transfer destination . next , the operation of the embodiment will be described using fig2 . as shown in fig2 , in the starting process of the information processing device , the control section 105 performs initial allocation of the cache memory and the local memory of the built - in memory 102 ( s 101 ), and then , measures the cache hit rate at each fixed time ( s 102 ). herein , when the cache hit rate is a value equal to or higher than a certain level ( for example , 90 % or higher ), the control section 105 determines that there is a probability that the size of the cache memory is excessive ( s 104 ), and thus , the control section performs a process of reducing the cache memory . next , the control section determines the currently allocated size of the cache memory ( s 105 ), and when the size of the cache memory can be reduced ( for example , when the cache allocated size of the built - in memory 102 is 5 % or lower ), the configuration of the built - in memory 102 is changed , and the size of the local memory is increased by reducing the size of the cache memory ( for example , to 5 %) ( s 106 ). next , data of an area in the external memory 103 currently used by the bus master device 104 is transferred to the local memory in order to cause another bus master device to use the newly - allocated local memory so that the area of the transfer destination of data in the local memory is made to be used by changing settings of the bus master device 104 . on the other hand , when the cache hit rate is a value less than a certain level ( for example , less than 90 %), the control section 105 determines that there is a probability that the size of the cache memory is insufficient ( s 104 ), and thus , the control section performs a process of increasing the size of the cache memory . after the currently allocated size of the cache memory is determined ( s 108 ), and when the size of the cache memory can be increased ( for example , when the cache allocated size of the built - in memory 102 is 95 % or less ), in order to allocated the size of the local memory to the cache memory , and thus , data of the area in the local memory currently used by the bus master device 104 is transferred to the external memory 103 , and the area of the transfer destination of the data of the external memory 103 is made to be used by changing the settings of the bus master device 104 ( s 109 ). the size of the cache memory is increased ( for example , by 5 %) and the size of the local memory is reduced by changing the configuration of the built - in memory 102 ( s 110 ). as such , according to the embodiment , since it is possible to change the configuration of the built - in memory 102 based on cache use efficiency , the processing speed of the cpu 101 can improve by increasing the size of the cache memory and reducing the size of the local memory when the size of the cache memory is insufficient . in addition , when excess cache memory is allocated , the size of the local memory is increased so as to be freed up to bus master device 104 by reducing the size of the cache memory . fig3 is a schematic configuration diagram of an information processing device according to a second embodiment of the invention , fig4 is a flowchart describing an operation of the same information processing device , and fig5 is a table indicating a configuration of a cache memory and a local memory . as shown in fig3 , the information processing device according to the second embodiment of the invention includes constituent elements 201 to 205 , 207 , and 208 that are the same as the constituent elements 101 to 105 , 107 , and 108 of the first embodiment , and a cpu measurement section 206 that measures a state of a cpu 201 . next , the operation of the embodiment will be described using fig4 . as shown in fig4 , in the starting process of the information processing device , the control section 205 performs initial allocation of the cache memory and the local memory of the built - in memory 202 ( s 201 ), and then measures ( s 203 ) the frequency and the load rate of the cpu at each fixed time ( s 202 ). the control section 205 determines the allocation size of the cache memory and the local memory using the table shown in fig5 based on the frequency and the load rate of the cpu 201 ( s 204 ). herein , the lower the frequency and the load rate of the cpu 201 and the lower the state the operation rate of the cpu is in , the more the frequency of memory access of the cpu 201 decreases and the cache memory becomes unnecessary ; conversely , the higher the frequency and the load rate of the cpu 201 and the higher the state the operation rate of the cpu is in , the more the frequency of memory access of the cpu 201 increases and the cache memory becomes necessary . for this reason , the table is constructed such that the size of the cache memory becomes large if the frequency and the load rate of the cpu 201 are high , and the size of the cache memory becomes small if the frequency and the load rate of the cpu 201 are low . next , the control section 205 compares the currently allocated size of the cache memory and the size determined this time ( s 205 ), and when the size of the cache memory is to be reduced , the control section changes the configuration of the built - in memory 202 , reduces the size of the cache memory , and increases the size of the local memory ( s 206 ). in order to cause the bus master device to use the newly allocated local memory , data of the area in the external memory 203 currently used by the bus master device 204 is transferred to the local memory , and the area of the transfer destination of the data of the local memory is made to be used by changing settings of the bus master device 204 ( s 207 ). when the size of the cache memory is increased , in order to allocate the local memory to the cache memory , data of the area in the local memory currently used by the bus master device 204 is transferred to the external memory 203 , and the area of the transfer destination of the data of the external memory 203 is made to be used by changing the settings of the bus master device 204 ( s 208 ). the size of the cache memory is increased and the size of the local memory is reduced by changing the configuration of the built - in memory 202 ( s 209 ). as such , according to the embodiment , since it is possible to change the configuration of the built - in memory 202 based on the operation state of the cpu 201 , when the operation rate of the cpu 201 is low and the cache memory is not necessary , such as in a low power consumption state or a resting state , the size of cache memory is reduced , and the size of the local memory is increased so as to be freed up to the bus master device 204 . in addition , when the operation rate of the cpu 201 is raised and therefore the cpu 201 needs the cache memory , the size of the local memory is reduced , and the size of the cache memory is increased so as to improve the processing speed of the cpu 201 . fig6 is a schematic configuration diagram of an information processing device according to a third embodiment of the invention , fig7 is a flowchart describing an operation of the same information processing device , and fig8 is a table showing a configuration of cache memory and a local memory . as shown in fig6 , the information processing device according to the embodiment includes constituent elements 301 to 303 , 305 , 307 , and 308 that are the same as the constituent elements 101 to 103 , 105 , 107 , and 108 of the first embodiment , and a graphic controller 304 ( the information processing section ), a built - in memory 302 , and a vram measurement section 306 that measures the state of a vram of the external memory 303 . next , the operation of the embodiment will be described using fig7 . as shown in fig7 , in the starting process of the information processing device , the control section 305 performs initial allocation of the cache memory and the local memory of the built - in memory 302 ( s 301 ), and then measures ( s 303 ) the size and the number of updates of the vram at each fixed time ( s 302 ). the control section 305 determines the allocation sizes of the cache memory and the local memory using the table shown in fig5 based on the size of the vram and the number of updates ( s 304 ). the frequency of memory access of the graphic controller 304 decreases as the size of the vram is small and the number of updates is low , and on the contrary , the frequency increases as the size of the vram is large and the number of updates is high . in order to prevent deterioration of drawing performance when the memory access of the graphic controller 304 increases , it is better to increase the allocated size of the local memory for the vram . for this reason , the table is constructed such that the size of the local memory increases if the size of the vram increases and the number of updates is raised , and the size of the local memory decreases if the size of the vram increases and the number of updates is raised . the following control ( s 305 to s 309 ) is the same as that ( s 205 to s 209 ) of the second embodiment except for the graphic controller 304 replacing the bus master device 204 of the second embodiment . as such , according to the embodiment , since it is possible to change the configuration of the built - in memory 302 based on the state of the vram , by using the local memory as the vram after increasing the size thereof and reducing the size of the cache memory when the screen size is large and the number of drawing updates is high , it is possible to enhance the access performance of the vram , thereby maintaining the drawing performance of the graphic controller 304 to a certain degree . in addition , when the screen side is small , the number of drawing updates is low , and therefore , the drawing performance of the graphic controller 304 is allowed to be low , and it is possible to enhance the processing speed of the cpu 301 by reducing the size of the local memory allocated as the vram and increasing the size of the cache memory . fig9 is a schematic configuration diagram showing an information processing device according to a fourth embodiment of the invention , fig1 is a flowchart describing an operation of the same information processing device , and fig1 is a table showing a configuration of a cache memory and a local memory . as shown in fig9 , the information processing device according to the fourth embodiment includes constituent elements 401 to 405 , 407 , and 408 that are the same as the constituent elements 101 to 105 , 107 , and 108 of the first embodiment , and a process measurement section 406 that measures the state of a process from the cpu 401 , the built - in memory 402 , and the external memory 403 . the process measurement section 406 is configured to measure the state of a process by measuring the cpu 401 , the built - in memory 402 , and the external memory 403 with an os executed by the cpu 401 . next , the operation of the embodiment will be described using fig1 . as shown in fig1 , in the starting process of the information processing device , the control section 405 performs initial allocation of the cache memory and the local memory of the built - in memory 402 ( s 401 ), and then monitors a change in the state of a process ( s 402 ). if a change in the state of a process is detected , the process being executed and the state thereof are measured ( s 403 ). the control section 405 determines the allocation sizes of the cache memory and the local memory using the table shown in the drawing based on the process being executed and the state thereof ( s 404 ). memory access of the cpu 401 differs according to processes executed , and differs according to the state of the process even in the same process . a polling process may use a small size of the cache memory because the process does not use the memory even though the process takes a share of the cpu 401 for a long period of time . for this reason , the table is constructed so that the size of the cache memory becomes large in the execution and state of the process that requires plenty of memory access , and the size of the cache memory becomes small in the execution and state of the process that requires little memory access . the following control ( s 405 to s 409 ) is the same as that of the second embodiment ( s 205 to s 209 ). as such , according to the embodiment , since the configuration of the built - in memory 402 can be changed based on the state of a process , the memory access performance of the process can improve by increasing the size of the cache memory and reducing the size of the local memory during the execution of the process that requires plenty of memory access . in addition , during the execution of the process that requires little memory access , the local memory can be freed up to the bus master device 404 by increasing the size of the local memory and reducing the size of the cache memory . fig1 is a schematic configuration diagram showing an information processing device according to a fifth embodiment of the invention , and fig1 is a flowchart describing an operation of the same information processing device . as shown in fig1 , the information processing device according to the fifth embodiment includes constituent elements 501 to 505 , 507 , and 508 that are the same as the constituent elements 101 to 105 , 107 , and 108 of the first embodiment , and a bus measurement section 506 that measures the external bus 507 and the internal bus 508 . the bus measurement section 506 is configured so as to measure the share of a bus by monitoring a signal line of the external bus 507 and the internal bus 508 and counting the bus master ( including the cpu 501 ) that takes a share of the bus at each fixed time . next , the operation of the embodiment will be described using fig1 . as shown in fig1 , in the starting process of the information processing device , the control section 505 performs initial allocation of the cache memory and the local memory of the built - in memory 502 ( s 501 ), and then measures ( s 503 ) the bus share of each bus master at each fixed time ( s 502 ). the control section 505 distributes the memory area used by each bus master to the built - in memory 502 and the external memory 503 based on the bus share of each bus master . at this time , since the built - in memory 502 has high performance , the built - in memory 502 is allocated preferentially to a bus master that makes frequent access to a memory with a high bus share . when the bus master that uses the built - in memory 502 is the cpu 501 , the cache memory is allocated as the area to use , and when the bus master is the bus master device 504 , the local memory is allocated as the area to use . then , when the size and the bandwidth of the built - in memory 502 are insufficient , an area of the external memory 503 is allocated ( s 504 ). the following control ( s 505 to s 509 ) is the same as that of the second embodiment ( s 205 to s 209 ). as such , according to the embodiment , based on the usage state of a bus , it is possible to change the configuration of the built - in memory 502 , to disperse the occupancy of the bus into the internal bus 508 and the external bus 507 , to improve a decrease in the processing speed when the bus bandwidth is insufficient and the performance of the bus master is not delivered , and to preferentially use the high - performance built - in memory 502 . furthermore , in the embodiment , there may be provided a plurality of bus master devices that measure the bus measurement section 506 . with this configuration , used buses of the plurality of bus master devices such as dsp , dma , and the like compete with each other , and thus , a decrease of the processing speed can improve when the performance is not delivered . fig1 is a schematic configuration diagram showing an information processing device according to a sixth embodiment of the invention , and fig1 is a flowchart describing an operation of the same information processing device . as shown in fig1 , the information processing device according to the sixth embodiment includes constituent elements 601 to 605 , 607 , and 608 that are the same as the constituent elements 101 to 105 , 107 , and 108 of the first embodiment , and a working set measurement section 606 that measures a working set from the internal bus 608 to the cpu 601 . the working set measurement section 606 is configured to count an address signal of the internal bus 608 at each fixed time and to measure the working set for the time being . next , the operation of the embodiment will be described using fig1 . as shown in fig1 , in the starting process of the information processing device , the control section 605 performs initial allocation of the cache memory and the local memory of the built - in memory 602 ( s 601 ), and then measures ( s 603 ) the working set at each fixed time ( s 602 ). it is wasteful for the size of the cache memory allocated to the cpu 601 to be equal to or larger than the size of the working set . for this reason , the control section 605 compares the working set of the cpu 601 to the size of the built - in memory 602 ( s 604 ), and when the working set is equal to or smaller than the size of the built - in memory 602 , the control section determines that the size of the cache memory is the same as that of the working set , and the remainder thereof is for the local memory ( s 605 ), and when the working set exceeds the size of the built - in memory 602 , the control section determines that the size of the cache memory is the entire built - in memory 602 , and the local memory is 0 . the following control ( s 607 to s 611 ) is the same as that of the second embodiment ( s 205 to s 209 ). as such , according to the embodiment , based on the working set , it is possible to change the configuration of the built - in memory 602 , to allocate a necessary portion of the cache memory to the cpu 601 , and to improve the processing speed of the cpu 601 . in addition , an unnecessary cache size can be allocated to the local memory so as to be freed up to the bus master device 604 . fig1 is a schematic configuration diagram showing an information processing device according to a seventh embodiment of the invention , fig1 is a flowchart describing an operation of the same information processing device , and fig1 is a table showing a state transition and a configuration of a cache memory and a local memory . as shown in fig1 , the information processing device according to the seventh embodiment includes constituent elements 701 to 705 , 707 , and 708 that are the same as the constituent elements 101 to 105 , 107 , and 108 of the first embodiment , various peripherals 710 , an interrupt controller 709 that interrupts the cpu 701 from a signal of each peripheral 710 , and an interrupt measurement section 706 that measures interrupts caused by the interrupt controller 710 . next , the operation of the embodiment will be described using fig1 . as shown in fig1 , in the starting process of the information processing device , the control section 705 performs initial allocation of the cache memory and the local memory of the built - in memory 702 ( s 701 ), and then measures ( s 703 ) the kind of interrupt when the states of the various peripherals 710 change and the interrupt controller 709 interrupts the cpu 701 ( s 702 ). the control section 705 performs state transition using the table based on the current state and the kind of interrupt ( s 704 ), and determines the allocation sizes of the cache memory and the local memory ( s 705 ). the table is constructed so as to have an optimal memory configuration based on the current state and the interrupt caused . an example thereof is shown below . when key interrupt occurs in a power saving state of the information processing device , most of the cache is allocated to the cpu 701 for the restoration process thereof . on the other hand , when key interrupt occurs in a moving image reproduction state of the information processing device , a certain size of the local memory used by the graphic controller and the bus master device 704 such as a dsp , or the like is secured in order to secure the memory access performance thereof . the following control ( s 706 to s 710 ) is the same as that of the second embodiment ( s 205 to s 209 ). as such , according to the embodiment , since it is possible to determine the state of the information processing device based on the kind of interrupt and to maintain the configuration of the built - in memory appropriate for the state , the memory access performance for the processing performance of the cpu and other bus master can be secured . the present invention has been described in detail and referring to specific embodiments , but it is obvious for a person skilled in the art that the invention can be variously modified and adjusted without departing from the scope and the gist of the invention . the present application is based on japanese patent application filed on oct . 14 , 2009 ( japanese patent application no . 2009 - 236941 ), and the content thereof is incorporated herein by reference . the information processing device of the invention includes first storage section of which an arbitrary area can be used by being switched to a local memory or a cache memory , a second storage section that is different from the first storage section , a measurement section for detecting a change in the usage states of the first storage section and the second storage section , a first change section for changing the configuration of the first storage section based on the measurement result of the measurement section , a transfer section for transferring data stored in the first storage section or the second storage section , and a second change section for changing an area of the first storage section or the second storage section that the information processing section uses . a control section can change to an optimal memory configuration based on the state of the information processing device because the control section monitors a measurement result of the measurement section and includes the first change section , the transfer section , and the second change section . therefore , even an information processing device of which a memory usage state significantly differs according to processing content can secure the processing performance and is useful for an information processing device such as a mobile telephone , a pc , or the like that performs a process of real - time decoding of moving images or audio data , a process in a resting state , or the like . 102 , 202 , 302 , 402 , 502 , 602 , 702 built - in memory 103 , 203 , 303 , 403 , 503 , 603 , 703 external memory 104 , 204 , 404 , 504 , 604 , 704 bus master device 105 , 205 , 305 , 405 , 505 , 605 , 705 control section 107 , 207 , 307 , 407 , 507 , 607 , 707 external bus 108 , 208 , 308 , 408 , 508 , 608 , 708 internal bus