Comments (2)
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.
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)
- dmesg -H output broken HOT 7
- 2.40 inconsistent smartcols output HOT 1
- swapoff’s man page makes it seem like swapoff has more options than it actually does HOT 2
- meson: Support building on Windows without sh HOT 10
- lsns: failure of lsns/ioctl_ns test case in the stable branch
- hexdump Europe/London tzfile(5) not advancing offset pointer across many line format file
- Heap-buffer-overflow in `findmnt` when showing the `SOURCES` column HOT 1
- Regression: umount exits non null due to restrictive permissions of utab.lock in 2.40 HOT 1
- lsns 2.39.2 segfaults enumerating network namespaces created by `ip` HOT 3
- getopt: '-?' short option is not supported
- 2.40 make error HOT 4
- scriptreplay: add interactive playback controls for position and speed HOT 1
- Column (libsmartcols.so) permahangs with certain inputs HOT 1
- uuid_generate_time_safe generates same safe UUIDs after a fork HOT 7
- Build failure with 2.40.1 HOT 3
- The small capacity of the CDROM triggered a Buffer I/O error during the probe.
- minimal multilib build fails HOT 5
- option to link to always create hard links to first found file HOT 3
- `-Dbuild-lsfd=disabled` apparently doesn't disable the tests for it also
- Feature proposal: umount --recursive on non-mountpoint directory HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from util-linux.