Order of memory segments

Ask a Question related to UNIX Programming, Design and Development.

  1. #1

    Default Order of memory segments

    Is the order of memory segments(text, data, BSS, heap) guaranteed to
    be same in any unix memory model ?
    qazmlp Guest

  2. Similar Questions and Discussions

    1. preloading in segments
      How can I preload a flashwebsite in segments? I'm building a website with 9 'rooms'. The background and the main navigation are the same in all the...
    2. IPC : destroy IPC::ShareLite-segments
      I use IPC::ShareLite-segments but havnt figured out an elegant way to destroy the created segments. The recommended way (manpage) always fails with...
    3. How many rollback segments can a transaction use?
      Oracle8(TM) Server Concepts " When a transaction runs out of space in the current extent and needs to continue writing, Oracle finds an available...
    4. newbie DBA - rollback segments
      I'm new to the oracle dba roll, so please be gentle. I load several large tables every night. My database is only about 20gB and is 24x7. I...
    5. mapping segments to sessions
      I am trying to trace segment growth in the temp tablespace back to a specific session. The tablespace will grow rapidly (40Gb) without warning. I...
  3. #2

    Default Re: Order of memory segments

    [email]qazmlp1209@rediffmail.com[/email] (qazmlp) writes:
    > Is the order of memory segments(text, data, BSS, heap) guaranteed to
    > be same in any unix memory model ?
    I can't imagine that it would.

    --
    Måns Rullgård
    [email]mru@users.sf.net[/email]
    Måns Rullgård Guest

  4. #3

    Default Re: Order of memory segments


    "qazmlp" <qazmlp1209@rediffmail.com> wrote:
    > Is the order of memory segments(text, data, BSS, heap) guaranteed to
    > be same in any unix memory model ?
    Hi qazmlp,

    Neither is this order guaranteed nor is this order used by all systems
    today...

    Just think about how the dynamic loader works, if you use
    dlopen() dlsym() within a prog... it's quite obvious that
    text-segs and data-segs will appear mixed...

    If you have access to a linux-system have a look
    at /proc/some_pid/maps
    ( cat /proc/XXXXX/maps ) ... replace XXX with a legal
    pid )

    regards ... rainer


    Rainer Temme Guest

  5. #4

    Default Re: Order of memory segments

    qazmlp wrote:
    >
    > Is the order of memory segments(text, data, BSS, heap) guaranteed to
    > be same in any unix memory model ?
    Given the existence of dlopen(), I don't see how any
    particular order could be guaranteed.

    --
    [email]Eric.Sosman@sun.com[/email]
    Eric Sosman Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139