来来往往
温抖死...豪情 wrote:啊我乘错了. 不过32BIT是四个BYTE. 那你这个是400MB. 有点大. 一定要一次全读进MEMORY吗? 你用什么操作系统?
工具会跟踪你的程序执行中的MEMORY ALLOCATION, 现在做的都很聪明了, 可以直接找出可疑的操作, 不一定要一行行读记录.


一次全读进去容易些.....

我内存有2G来着,一个可以handle,两个就挂了。然后停一下重新run,又可以了。所以说肯定哪儿出了点儿问题。
啊,对对,32bit是4byte,我真是糊涂,这种二进制老是给我搞得缠夹不清的。
再次对白博鞠躬,对不起对不起。
我自横刀向天笑,笑完我就去睡觉。
This one is nice, especially if you use Visual Studio
http://www.jetbrains.com/profiler/
It is free for the first 10(?) days, if you still need it after that you have to pay $500 something.
Memory algorithm can be very interesting, you can even try to build your own little paging system, after that you will become an expert to the operating system
Of curse, the easiest way is to request a whole bunch of dual core xxG memory machines, you can claim that they are cheaper than the your time invested into the algorithm
http://www.jetbrains.com/profiler/
It is free for the first 10(?) days, if you still need it after that you have to pay $500 something.
Memory algorithm can be very interesting, you can even try to build your own little paging system, after that you will become an expert to the operating system

Of curse, the easiest way is to request a whole bunch of dual core xxG memory machines, you can claim that they are cheaper than the your time invested into the algorithm

这正是我想说的,一个visible human的man就比这个大,woman更大海阔天空 wrote:400兆的数据怎么算大呢?我平时看个脑袋看个心脏,都很大。
比如说,DTI的数据:256 x 256 x 256 个voxel,每个voxel需要起码12个浮点数,同时再加一个CT的,一个MRI的,两三个fMRI的。。。
都不用那么复杂的工具,你这么明显的内存问题,用windows task manager都可以大略的看一看。

至于4个G的内存,我当年(3年前)定了个dell的workstation,要了4G内存,结果XP只认3个G,不知道现在这个问题解决了没有

当年编程序,总有fancy东西,哪像现在,净敲文档。前几天和前同事聊天,说是实验室刚买了三维打印机

钻石恒久远