Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006


Shmget problems

I used int shmget (key_t key, size_t size, int shmflg); Admission shared memory, but found the size too much time to report errornum=22 enough memory, could even even with the order to tell me I can obtain maximum shared memory?

Shmget problems

I see
[root@esaserver Proc]# more meminfo
Total : used : free : shared : buffers : cached :
Mem : 1043492864 750604288 292888576 0 47927296 582615040
Equity : 1077469184 0 1077469184
MemTotal : 1019036 kB
MemFree : 286024 kB
KB MemShared : 0
Buffers : 46804 kB
Cached : 568960 kB
KB SwapCached : 0
Active : 355464 kB
ActiveAnon : 186612 kB
ActiveCache : 168852 kB
Inact_dirty : 254956 kB
Inact_laundry : 73464 kB
Inact_clean : 3324 kB
Inact_target : 137440 kB
HighTotal : 121392 kB
HighFree : 1796 kB
LowTotal : 897644 kB
LowFree : 284228 kB
SwapTotal : 1052216 kB
SwapFree : 1052216 kB
HugePages_Total : 0
HugePages_Free : 0
Hugepagesize : 2048 kB

I saw these MemFree : 286024 kB, the size I can 286024000 incorrect? The unit is the byte size bars

Shmget problems

Sysctl can? If Linux is a direct operation on the trip /proc

Shmget problems

/proc/sys/kernel/shmmax. This should, however not even emphasized that no :)

Shmget problems

Thank you ~~~

Shmget problems

Different systems, the need is the greatest memory of the kernel configuration parameters.
Moreover, this can also be configured, you need to first look at the Unix platform
Kernel parameter configuration sizes. Reading then decided to end the size of the shared memory

Shmget problems

In Linux, this seems to be preparing the revised document



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com