ram

Load a MySQL innodb database into memory

时光毁灭记忆、已成空白 提交于 2019-12-05 03:49:25
I have a MySQL innodb database at 1.9GB, showed by following command. SELECT table_schema "Data Base Name" , sum( data_length + index_length ) / 1 048 576 as "Data Base Size in MB" , sum( data_free )/ 1 048 576 as "Free Space in MB" FROM information_schema.TABLES GROUP BY table_schema ; +--------------------+----------------------+------------------+ | Data Base Name | Data Base Size in MB | Free Space in MB | +--------------------+----------------------+------------------+ | database_name | 1959.73437500 | 31080.00000000 | My questions are: Does it mean if I set the innodb_buffer_pool_size to

Determining ARM Cortex M3 RAM Size at run time

醉酒当歌 提交于 2019-12-05 00:54:26
问题 I'm developing some software for STM32F103-based ARM microcontrollers (compiling with GCC). A few of my users want to be able to use the same binary with different versions of the same chip (that have more RAM), so I need a way of finding out how much RAM I have at runtime. There's an address (0x1FFFF7E0) that contains the flash size, but it seems there isn't one that contains the RAM size! The obvious solution is just to run up the memory addresses checking which ones are read/writable, but

fill memory with random data

一曲冷凌霜 提交于 2019-12-04 23:47:54
问题 Is there a way to fill the free RAM on a linux machine with random data? The reason I'm asking this: I'm working in a group where we do numerical programming in Fortran. Sometimes, people mess up working with double precision reals, so that programs that should give double precision results only give single precision. If my understanding is correct, one would see random fluctuations of the result after the single precision limit in such a program. That is, if you run the same program with the

Is there a way to force mongodb to store certain index in ram?

旧城冷巷雨未停 提交于 2019-12-04 23:21:46
问题 I have a collection with a relatively big index (but less than ram available) and looking at performance of find on this collection and amount of free ram in my system given by htop it's seems that mongo is not storing full index in the ram. Is there a way to force mongo to store this particular index in the ram? Example query: > db.barrels.find({"tags":{"$all": ["avi"]}}).explain() { "cursor" : "BtreeCursor tags_1", "nscanned" : 300393, "nscannedObjects" : 300393, "n" : 300393, "millis" :

amo上转载关于dsp烧写和外扩RAM

懵懂的女人 提交于 2019-12-04 22:48:55
1.DSP程序的串口下载方式。 这种方式可以省了买仿真器的一笔很大的花费,这个电路上有什么特别之处么?跟一般的串口通讯电路有何不同? 是不是一片Max232加几个电容,然后接到芯片上的相应引脚就行了? 相比JTAG来说,串口是只能下载不能在线仿真么? 2.外扩存储器问题。 看了好多网上卖的开发板,发现都有扩展的RAM和ROM,弱弱的问一句,难道是因为DSP本身的存储器不够大么? 我看2812的存储器挺大的,为啥非得外扩呢?不外扩有什么缺点呢? 对于我这样刚入手的来说,画板子的时候要不要加外扩存储器呢? 第一个问题,建议你还是用jtag方式下载,毕竟现在主流的方式是这样的,出现问题可以交流的人会比较多。 第二个问题,存储器没有嫌大的,因此如果程序小,不外扩没有问题,如果程序大或者里面有大量的字库等等肯定需要外扩了。 1.DSP程序的串口下载方式。 -- 建议使用jtag调试。相比以前来讲,ti已经放出xds100v2仿真器,而且ccs4.x以上版本支持很好。重点是价格便宜,呵呵,相比以前买的合仿真器(1700大洋)。 -- 2812支持sci下载代码,支持scia。这点很方便现场工程师更新代码。 -- max232这个芯片不大合适。因为这个芯片要求5V电源的,2812接口电压是3.3V。 2.外扩存储器问题。 -- 这个问题,应该是自己来决定的问题。即做出来这个板子到底做什么? --

On Linux: We see following: Physical, Real, Swap, Virtual Memory - Which should we consider for sizing?

爷,独闯天下 提交于 2019-12-04 19:23:35
We use a Tool (Whats Up Gold) to monitor memory usage on a Linux Box. We see Memory usage (graphs) related to: Physical, Real, Swap, Virtual Memory and ALL Memory ( which is a average of all these ). 'The ALL' Memory graphs show low memory usage of about: 10%. But Physical memory shows as 95% used. Swap memory shows as 2% used. So, do i need more memory on this Linux Box? In other words should i go by: ALL Memory graph(which says memory situation is good) OR Physical Memory Graph (which says memory situation is bad). Real and Physical Physical memory is the amount of DRAM which is currently

Immediately stop MATLAB if RAM usage exceeds a specified amount. Is there a way?

偶尔善良 提交于 2019-12-04 18:35:41
问题 Title says it all. Basically, I am getting tired of having to reset my comp every time I mistakenly make MATLAB use a large amount of RAM for a simulation with many parameters I am creating. Is there a way to make it stop/error out if the RAM usage starts to exceed a specified percentage of my total RAM? I know that I am put try/catches every where I allocate memory, but this is for a program that is already written, and also, for future reference, I want to be able to just set a parameter in

Ruby/Mechanize “failed to allocate memory”. Erasing instantiation of 'agent.get' method?

 ̄綄美尐妖づ 提交于 2019-12-04 16:06:32
I've got a little problem about leaking memory in a Mechanize Ruby script. I "while loop" multiple web pages access forever and memory increase a lot on each loop. That created a "failed to allocate memory" after minutes and made script exit. In fact, it seems that the agent.get method instantiate and hold the result even if I assign the result to the same "local variable" or even a "global variable". So I tried to assign nil to the variable after last used and before reusing the same name variable. But it seems that previous agent.get results are still in memory and really don't know how to

Arduino: Is the command Serial.print(“some string text”) occupying SRAM?

痴心易碎 提交于 2019-12-04 09:58:19
问题 I have quite a big Arduino project (in eclipse) going on with a lot of debug messages using the Serial.print("some string text") commands so that I can debug along the way. One thing that I have noticed is that I reach a limit for how many of these I can have in the project. If i put too many, the program halts at very strange places. Ie: often long before my newest addition of a print command is supposed to execute. My project .hex file is around 20k at the moment. The Arduino Uno limits

How is RAM allocated? [closed]

元气小坏坏 提交于 2019-12-04 08:43:43
This is a noob question about computer science: How is ram allocated? Fo example, I use Windows. Can I know which adresses are used by a program? How does Windows allocate memory? Contiguous or non contiguous? Is it the same thing on Linux OSes ? And, can I have access to the whole ram with a program? (I don't believe in that, but...) Do you know any good lectures/documentation on this? First, when you think you are allocating RAM, you really are not . This is confusing, I know, but it's really not complicated once you understand how it works. Keep reading. RAM is allocated by the operating