Git Product home page Git Product logo

Comments (6)

comotion avatar comotion commented on August 15, 2024

how did you come by 32768? do you have a large cpm database?

from cpm.

comotion avatar comotion commented on August 15, 2024

a stock compile and the packaging process works fine with the default of 5010 or so here on debian squeeze

from cpm.

comotion avatar comotion commented on August 15, 2024

please give me ulimit -a when this problem appears

from cpm.

knutid avatar knutid commented on August 15, 2024

On Lenny with default contents in /etc/security/limits.conf:

  ~$ cat /etc/debian_version
  5.0.4
  ~$ uname -a
  Linux somehost.example.com 2.6.26-2-xen-amd64 #1 SMP Wed May 12 18:37:58 UTC 2010 x86_64 GNU/Linux
  ~$ cpm --security
  Running without root privileges:                  yes
  Memory protection from core dumps:                yes
  Memory protection from swap writings:             no
  Max. memory lock ok:                              no (32 kB)
  Memory protection from ptrace spying:             yes
  Validation of environment variables:              yes
  ~$ ulimit -l
  32
  ~$ su -
  ~# ulimit -a
  core file size          (blocks, -c) 0
  data seg size           (kbytes, -d) unlimited
  scheduling priority             (-e) 0
  file size               (blocks, -f) unlimited
  pending signals                 (-i) 4160
  max locked memory       (kbytes, -l) 32
  max memory size         (kbytes, -m) unlimited
  open files                      (-n) 1024
  pipe size            (512 bytes, -p) 8
  POSIX message queues     (bytes, -q) 819200
  real-time priority              (-r) 0
  stack size              (kbytes, -s) 8192
  cpu time               (seconds, -t) unlimited
  max user processes              (-u) 4160
  virtual memory          (kbytes, -v) unlimited
  file locks                      (-x) unlimited
  ~# ulimit -l 5120 # ref. http://www.harry-b.de/dokuwiki/doku.php?id=harry:cpm#memory_issues
  ~# ulimit -a
  core file size          (blocks, -c) 0
  data seg size           (kbytes, -d) unlimited
  scheduling priority             (-e) 0
  file size               (blocks, -f) unlimited
  pending signals                 (-i) 4160
  max locked memory       (kbytes, -l) 5120
  max memory size         (kbytes, -m) unlimited
  open files                      (-n) 1024
  pipe size            (512 bytes, -p) 8
  POSIX message queues     (bytes, -q) 819200
  real-time priority              (-r) 0
  stack size              (kbytes, -s) 8192
  cpu time               (seconds, -t) unlimited
  max user processes              (-u) 4160
  virtual memory          (kbytes, -v) unlimited
  file locks                      (-x) unlimited
  ~# su - $UNPRIVILEGED_USER
  ~$ cpm --security
  Running without root privileges:                  yes
  Memory protection from core dumps:                yes
  Memory protection from swap writings:             yes
  Max. memory lock ok:                              yes (5120 kB)
  Memory protection from ptrace spying:             yes
  Validation of environment variables:              yes

Fix, add something like:

-               -       memlock         5120
  
to /etc/security/limits.conf.

br,
Knut

from cpm.

comotion avatar comotion commented on August 15, 2024

ok, this is not really a CPM issue. CPM can't frob the limit, and does warn you if the limit is too low.

from cpm.

comotion avatar comotion commented on August 15, 2024

my memlock is unlimited by the way. not a problem on a single user system

from cpm.

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.