memory management

  1. D

    Memory management FreeBSD kernel

    Virtual memory and address space Consider the traditional distribution of process virtual memory on i386 (drawn from the picture by Matthew Dillon in pseudographics): We are not interested in what is related to the process, but now we are interested in the part that is KERNEL. This part, which...
  2. K

    Understanding memory management

    Hi Everyone, I'd like to learn more about how FreeBSD manages memory, specifically about the types of memory that top shows. I've read a few articles on the topic, also Chapter 7 in the Architecture Handbook. The following is my current understanding on the subject. Please clarify if I got...
  3. PKraszewski

    Usage of M_PREPEND() function in netgraph processing

    Hello! I'm in the process of writing a netgraph node specific to my project, sitting between ethernet node on the left and bunch of udp/sctp nodes on the right (sorta really crippled L2 VPN without encryption). It has "local" and set of peer0..peer15 hooks. The job of the node with flow...
  4. V

    Inactive memory breakup

    Hi, I have a FreeBSD 10 system which has 64 GB of RAM and does not have any swap. The top command is showing 34G Inactive memory; and I am confident that not 100% of this inactive memory is dirty. However I don’t know how to find how much of this Inactive memory is dirty and how much is...
  5. D

    C Create a thread with a separate file descriptor table (set RFFDG flag)

    I want to create a thread with a separate file descriptor table to have better performance with kevent. In Linux, I was using unshare syscall to achieve this, which as far as I know there is no equivalent or similar syscall in FreeBSD. Then I tried creating such thread directly with rfork via...