Modifying SHMMAX in include/linux/shm.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

This question involves an out-of-tree patch and a proprietary 3rd party 
app, so if I'm out of line asking here please flame away :-)

I'm running an app in a VServer ( http://linux-vserver.org ) that 
requires /proc/sys/kernel/shmmax >= 0x4000000.

Unfortunately I can't change that inside the guest, it gives this error:
bash: /proc/sys/kernel/shmmax: Operation not permitted

The value is always set to 02x2000000 in the guest, even when altered in 
the host. So, I modified line 12 in include/linux/shm.h from this:

#define SHMMAX 0x2000000

to

#define SHMMAX 0x4000000

and recompiled, rebooted and I get the effect I want.

Q: Will this change impact anything else? For example, would it be 
adviable to alter SHMALL as well?

thanks

alan


-- 
Alan McKinnon
alan at gmail dot com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux