Conference Room SAD
[thread display] [new arrival display] [word search] [past log] [管理用]

Subject Re: SAD program memory allocation error
Date: 2014/01/11(Sat) 17:42:08
ContributorAnonymous

> Demin Zhou suggested I post to this list my problem. I am running SAD on a 64 bit Linux machine using gcc 4.6. I am not using X11, Tcl/Tk nor EPICS. No matter what input file I use, SAD bombs at the USE statement with a memory allocation error. An example run is listed below. Anyone have any ideas as to what to do?
>
SAD MAIN trunk assumes that malloc(3) returns 4GiB clipped virtual address.

SOLUTIONs
* Use k64-1-6 branch
* Use 32bit executable(cross-build, virtual machine, ...)
* Limit virtual memory address mapping(Modify kernel VM sub-system parameter or configure tuning knobs(if supported))
* Use another memory allocation API with address space limitation if available
For example, some operating system supports vendor dependent extension of 64bit mmap(2) system call
for limiting address space into 2GiB region.
Read src/sim/unix_memory_.c and mmap(2) online manual of your system.


- 関連一覧ツリー (Click ▼ to display all articles in a thread.)