Changeset 257 for eaccelerator/branches/0.9.5/mm.c
- Timestamp:
- 07/30/06 13:09:59 (2 years ago)
- Files:
-
- eaccelerator/branches/0.9.5/mm.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
eaccelerator/branches/0.9.5/mm.c
r230 r257 707 707 while ((fd = shmget(IPC_PRIVATE, seg_size, (IPC_CREAT | SHM_R | SHM_W))) == -1) { 708 708 if (seg_size <= 1024*1024) { 709 #if !defined(MM_TEST_SEM) && !defined(MM_TEST_SHM) 709 710 ea_debug_error("eAccelerator: shmmax should be at least 2MB"); 711 #endif 710 712 return (MM*)-1; 711 713 } 712 714 seg_size /= 2; 713 715 } 716 #if !defined(MM_TEST_SEM) && !defined(MM_TEST_SHM) 714 717 ea_debug_error("eAccelerator: Could not allocate %d bytes, the maximum size the kernel allows is %d bytes. " 715 718 "Lower the amount of memory request or increase the limit in /proc/sys/kernel/shmmax.\n", size, seg_size); 719 #endif 716 720 717 721 /* bart: Removed the code that tried to allocate more then one segment