Coder Social home page Coder Social logo

Comments (2)

rudimeier avatar rudimeier commented on May 18, 2024

Thanks, but this fix still not works on x86_64 where size_t and unit64_t are the same.
For example on my system I have per default

$ cat /proc/sys/kernel/shmall
1152921504606846720 

which is 4611686018427386880 KB and greater than 2^64 bytes
so ipcs can't do it correctly:

$ ./ipcs -ml | grep "max total"
max total shared memory (kbytes) = 18014398509480960

from util-linux.

DerDakon avatar DerDakon commented on May 18, 2024

I think I have hit the same thing on hppa with 2.36.2. The ipcs/limits2 test fails for me.

# cat limits2
check for difference between kernel and IPC
/proc/sys/kernel/shmmni kernel=, ipcs=4096
/proc/sys/kernel/shmall kernel=, ipcs=18014398509481980
/proc/sys/kernel/shmmax kernel=, ipcs=18014398509465599
#  cat /proc/sys/kernel/shmmni /proc/sys/kernel/shmall /proc/sys/kernel/shmmax
4096
18446744073692774399
18446744073692774399
# ipcs -ml
------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 18014398509465599
max total shared memory (kbytes) = 18014398509481980
min seg size (bytes) = 1

from util-linux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.