Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Problem after manual compile kernel

    Scheduled Pinned Locked Moved Development
    2 Posts 1 Posters 2.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      khans
      last edited by

      Hi!
      I manually compile kernel and it seemed worked ok, but now I got error kmem_malloc(4096): kmem_map too small: here size in kb and server crashes. Next it restarts but again crashes (usually when it starts ftp helper, firewall or carp).
      I compiled kernel to increase HFSC_MAX_CLASSES from 64 to 512.
      For compilation I used:
      RELEASE_6_2-p12 and:
      http://cvs.pfsense.com/cgi-bin/cvsweb.cgi/tools/builder_scripts/conf/make.conf.6
      http://cvs.pfsense.com/cgi-bin/cvsweb.cgi/tools/builder_scripts/conf/pfSense.6

      According to list :http://cvs.pfsense.com/cgi-bin/cvsweb.cgi/tools/builder_scripts/patches.RELENG_6_2?rev=1.109;content-type=text%2Fplain
      from directory
      http://cvs.pfsense.com/cgi-bin/cvsweb.cgi/tools/patches/RELENG_6_2/

      Maybe I should use some other patches from directory not only these from list.
      To avoid that problem I put in loader.conf vm.kmem_size_max="536870912", but it helped only for short time.
      The error occurs when I try add any new rules,nat and sometimes shaping. After error, the only way to restore pfsense is bring config.xml before changes which caused crash.

      Maybe my configuration becomes too big and it cannot allocate memory? I think it is because of lack of some patch.

      Regards,
      Hans

      1 Reply Last reply Reply Quote 0
      • K
        khans
        last edited by

        Also I get errors:
        There were error(s) loading the rules: pfctl: DIOCADDRULE: Cannot allocate memory
        And
        There were error(s) loading the rules: pfctl: DIOCADDRULE: device busy

        Maybe this 1st error sometimes cause pfsense to crash. Not sure

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.