Shared memory (System V-style) - High usage of phys memory and page outs

Hi!
I get a much higher usage of physical memory when I use shared memory than I would expect. Please, I would really need someone to confirm my conclusions, so that I can revise my ignorance in this subject.
In my experiments I create a shared memory segment of 200 MB and I have 7 processes attaching to it. I have a ws of 1 GB.
I expect to see what I see when I attach to the shared memory segment in terms of virtual size, i.e. SIZE in prstat. After attaching (mapping it) to the process all 7 processes are about ~203 MB each and this makes sense. RSS, in prstat, is about 3 MB for each process and this is ok to me too.
It is what I see when each of the 7 processes start to write a simple string like 'Hello!' in parallel to each page in their shared memory segment that I get surprised. I run out of memory on my ws after a while and the system starts to wildly page out physical memory to disk so that the next 'Hello!' can be written to the next page in the shared memory segment. It seems that each page written to in the shared memory chunk is mapped into each process private address space. This means that the shared memory is not physically shared, just virtually shared. Is this correct?
Can memory be physically shared, so that my 7 processes only use 200 MB? ISM? DISM?
I create a shared memory segment in a C-program with the following calls:
shmid = shmget(key, SHM_SIZE, 0644 | IPC_CREAT)
data = shmat(shmid, (void *)0, 0);Thanks in advance
/Sune

Your problem seemed reasonable. What were you doing wrong?
Darren

Similar Messages

  • High usage of physical memory

    hello,
    i  just bought my first mac few days ago, and i have a question about the physical memory usage,
    my mac is macbook pro 13' with retina display and 8 GB, and i think that for some reason my memory usage is significantly high then it should.
    when i'm just using safari, i have about 600 MB available (and sometimes even about 200 MB)
    is it fine? what is the regular memory usage in the mac?

    The new OSX's will use as much RAM as is available, if possible.  No longer is the amount the metric, but 'Pressure'.  If if is green, all is well.
    https://support.apple.com/en-us/HT201464
    Ciao.

  • Roaming Fraud in Telecoms and High-Usage Reporting standards

    Hi,
    I am sure that there are people out there performing software development on telecoms systems to process high usage reports in order to reduce roaming fraud.  I am hoping that someone can point me at a forum they may use so that I may join them to exchange
    information.
    Can anyone help please?
    Many thanks in advance.
    Terry

    Kai,
    Thanks for the question (and input). As you probably know, we have several partners that provide WLP-ready monitoring solutions providing insight into the utilization, availability, and performance of portal components, including Acsera, Quest, Intersperse, and Wily. In general, these tools are sophisticated and powerful, providing features such as SLA management, alerting, and drill down capability to meet the needs of operational, support, and development personnel tasked with detecting, isolating, and diagnosing performance and availability related issues.
    In addition, we recognize the need to provide business users with straightforward statistics on utilization and performance. While we do not plan on providing such capabilities out of the box for the 9.2 release, we are actively investigating the possibility of leveraging the Analytics component of ALUI to provide such reporting capabilities for Weblogic Portal in the future.
    If you'd like to know more about ALUI Analytics, visit http://www.plumtree.com/products/analytics/default.htm
    Ken

  • Regarding shared file system requirement in endeca server cluster

    Hi,
    Our solution involves running a single data domain in an endeca server cluster.
    As per the documentation, endeca server cluster requires shared file system for keeping index file for follower node to read.
    My questions are,
    Can I run the endeca cluster with out shared file system by having the index file on each node of the endeca server cluster?
    Can dependency on shared file system be a single point of failure, if yes how can it be avoided?
    I really appreciate your feedback on these questions.
    thanks,
    rp

    Hi rp,
    The requirement for a shared file system in the Endeca Server cluster is a must. As this diagram shows, the shared file system maintans the index, and also maintains the state of the Cluster Coordinator, which ensures cluster services (automatic leader election, propagation of the latest index version to all nodes in the data domain). A dependency on a shared file system can be a single point of failure and requires to run a backup, -- this is a standard IT approach, that is, it is not specific to the Endeca Server cluster in particular.
    See this section on Cluster Behavior, for info on how the shared file system is used (the topic "how updates are processed"), and on how increased availability is achieved.
    HTH,
    Julia

  • After updating to latest Firefox - when I click on google taskbar my CPU usage goes to 100% and stays there... and computer is really slow. No other search engine show the 100% usage like Google. There was NOT a problem with older versions of Firefox...?

    My computer got really slow after updating to latest version of Firefox. I checked all processes and I was testing the system. THe CPU usage goes between 2 and 70 percent staying around 25% on average, when I check my e-mail. As soon as I click on Google taskbar (without even typing in anything) the CPU usage jumps to 100% and STAYS at 100 %, and computer extremely slow.

    My computer got really slow after updating to latest version of Firefox. I checked all processes and I was testing the system. THe CPU usage goes between 2 and 70 percent staying around 25% on average, when I check my e-mail. As soon as I click on Google taskbar (without even typing in anything) the CPU usage jumps to 100% and STAYS at 100 %, and computer extremely slow.

  • My MacBook (late 2009 Mac OS X Lion 10.7.5 (11G63) often runs VERY slow...beach ball of death frequently.  My page ins (5.29GB), page outs (5.64BG), and swap files (10GB) seem extremely high in comparison to most other discussions in here.  HELP!!??

    My MacBook (late 2009 Mac OS X Lion 10.7.5 (11G63) often runs VERY slow...beach ball of death frequently.  My page ins (3.29GB), page outs (5.64BG), and swap files (10GB) seem extremely high in comparison to most other discussions in here.   I don't know how to copy the pie chart so it shows on here but here's what it says right now:
    Free - 176 MB
    Wired - 592MB
    Active - 843MB
    Inactive - 432MB
    Used - 1.82 GB
    VM size - 198GB
    The page ins and page outs have 0 bytes/sec in the parenthesis even though the numbers are so high. 
    Any help anyone could provide would be greatly appreciated!!!

    You difinately need more ram. 2gb is the bare minimum to run just the Lion OS, anything extra will slow your Mac to a crawl. Upgrade to 8gb from either Crucial http://www.crucial.com/ or OWC http://eshop.macsales.com/
    And you will be a happy camper!

  • High usage in memory

    Dear All,
    I have a situation here that high usage of system memory, When i check in st22  i cud see only short dump relating to it.
    I checked in st06, 80 % of my memory is being used, only 20 % left.
    When i check the same in sm37 and there are only three jobs running which took only low memory.system is paging, How do i exactly find out which job is taking high consumption of my memory.
    where can i check all these.
    Rgds,
    sinner

    Hi,
    When you activate an InfoCube, rebuild an aggregate, delete the data of an InfoCube or perform other operations, the SAP BW system creates fact tables. By default, data compression is not activated in these cases.However, usually the numeric values in a fact table are correlated or are located in a small segment of the value range. For this data, you can achieve good compression rates with less memory space requirements and a better utilization of the DB2 buffer pool and, therefore, less input and output.
    Reduces application server access to Database. Ie.g. set the number range buffer for one dimension to 500, the system will keep 500 sequential numbers in memory SAP OSS note 130253: Notes on upload of transaction data into BW
    After the load, reset the number ranges buffer to its original state: minimize unnecessary memory allocation.

  • W530 SSD and Memory help needed for high performanc​e systems.

    Hi Guys,
    After dealing with lots of laptops that got destroyed by daily use, our organizations is considering ordering 25 Thinkpad W530 laptops from Lenovo and we hope that they last a little longer.
    Our main usage is video editing and design so we have chosen the best that Lenovo has to offer as far as hardware.
    Since Lenovo charges arm and a leg for SSD and 16GB memories, we have decided to purchase these separately and upgrade ourselves.
    Knowing the high need for performance, what would you recommend for 128GB SSD and 16GB memory?
    The laptops are all coming with 7200 RPM drives for storage so the SSD is mainly for programs and the OS.
    For the drive bay, does this part sound right to you? http://shop.lenovo.com/us/itemdetails/0A65623/460/​89555ADB1CE946DA80E0E5D6FE77B164
    This would be used for the HDD and the SSD would be moved to main HDD location.
    Is there anything else we should know about these laptops?
    Thank you in advanced for your time and all suggestions are welcomed.
    Cheers,
    Chris
    Solved!
    Go to Solution.

    I installed 32GB (4x8GB) of Corsair Vengeance RAM, and it has been working wonderfully since day 1.
    Thinkpad W530, i7-3720QM, 1920x1080 screen, 32GB RAM, dual SSDs (Samsung 830, Crucial M4 mSATA), Quadro K2000M, 9-cell battery, DVD burner, backlit keyboard, Bluetooth, Intel 6300 wireless card

  • Upgraded to IO6, seems like the amount of system memory to run is higher, this causes issues with some Apps. I can't get SIRI to work because the amount of free system memory is not enough. how can I tell what is eating the system memory?

    Upgraded to IO6, seems like the amount of system memory to run is higher, this causes issues with some Apps. I can't get SIRI to work because the amount of free system memory is not enough. how can I tell what is eating the system memory?

    Upgraded to IO6, seems like the amount of system memory to run is higher, this causes issues with some Apps. I can't get SIRI to work because the amount of free system memory is not enough. how can I tell what is eating the system memory?

  • SQL Developer - High usage of memory !

    Hello All,
    I have downloaded SQL Developer 4 today and when i started working on it, my computer memory started to IRK a lot. So when i checked in "Task Manager", i found something very strange.
    The memory consumption was too high (almost 350 MB). Can someone tell me why is this version of SQL Developer is using such as huge amount of memory or is there some workaround for this issue.
    I tried to attach the screenshot but that did not happen.
    Any help is greatly appreciated.
    Thanks in advance,
    Aravind S

    Why is that number, 'too much?'
    What Windows reports is rarely accurate with Java applications.
    How much RAM do you have on your machine, and how much was free when your machine started to misbehave?

  • Firefox 3.6.8 causes high cpu on idle (memory fine)

    For the past week or two (I think maybe since I upgraded to 3.6.8) Firefox has started to take up high amounts of cpu when left to idle, (30% minimum on an E7200 processor, increasing to 50+% when I try and actually use it) which in turn has rendered it pretty unpleasant to use until I restart the program. The odd thing about this is that there is not a corresponding increase in memory usage, with the memory hovering around the 300k mark. I have tried disabling my add ons one by one, but the problem manifests regardless.

    Solved my problem. I had installed a Persona (skin) that used animations. This seems to have been the problem.
    What I did not appreciate is that when I disabled the Personas add-on, it did nothing to stop the behavior, and left the Persona intact.
    After switching to another non-animated Persona, my cpu is back to 0%
    I discovered this after lengthy experimentation with the above suggestions, which did nothing for me.

  • Memory system cache on windows server 2003 standard 64-bit is too hign

    Hi,
    I have an issue with one of the server - OS is windows 2003 standard 64 bit. Total memory installed on the server is 16GB. When I go to task manager>performance tab, Total physical memory is 16 GB, available memory is around 500 MB almost all the time,
    System cache is greater than 13.5GB. When I take a look at all the processes that are running, and if I sum those memory usage it will be around 2 GB. So all the memory is consumed by system cache. Checked the perfmon > memory> system cache resident
    bytes and it is showing greater than 13.5 GB. I have gone through some articles that tells me to use RAMMAP to find which is using more system cache. But RAMMAP is not designed to run with windows 2003 version. Please can you help with a way/tool to find what
    is using system cache in windows 2003 server
    Thanks in advance
    Regards
    RJ

    It is supposed to do this. Windows can be very aggressive in caching data and code. This data is released as soon as the system needs memory for something else, but when it is unused, the system uses it to cache all sorts of stuff. It utilizes the memory
    which would otherwise be unused. Leaving it unused would basically be a waste.
    So in other words, nothing is wrong. It is windows which decides to try and be more efficient. As soon as a request for more memory comes in, it just drops whatever is needed from the cache immediately.
    This is one of the reasons that in later versions, the memory is reported differently in task manager, because people kept trying to stop the system from caching because they wanted to see more 'free' memory.

  • High Usage, Old PC and Modem Dial-up broadband, La...

    Hello , AVG keeps popping up on Firefox with one of the latest usage being over 300mb+, when simply having 4 or so tabs open.  High Usage, I have Old PC windows XP and Modem Dial-up broadband, Latest Firefox Browser 15.0.1 (sept2012)
    Also netgear Hub  Sister uses as wireless I somethimes use with Network cable on my Laptop, Windows 7 again Firefox.
    Tried talking to BT customer service but no solution.
    Whilst as a amatuer photographer and massive music fan I could be on Fb, Youtube, MySpace, msn all at the same time, msn is Bonkers crazy on flash and adverts etc, and I use an AD remover for FB.
    I have tried disabling add-ons and Plug ins on firefox, but this year have had prob 3 or 4 Java, adobe Flash, and Firefox updtaes thus far. i am sure this background stuff could be eating up my usage, yet a non tech user cannot possibly do anything about this.
    I post many pics on some sites and looking to do my own web site  but if Uploading my images (which i reduce) and viewing others downloading etc I know that would be part of the usage, but I only started getting the Usage Allowance emails in May  or June 2012, there was No issue the previous years with BT but Now it is an issue.
    But I am pretty sure I was on Unlimited broadband but BT has put me on Option 1 10gb.
    This is more of an info post to try and locate what can be done to reduce the Usage allowance
    Thanks
    DW

    Thanks a lot for the reply.
    I installed the update, and I think the '..\services.exe' issue might have overcome. (NOT 100% sure though)
    But the machine still, Hangs
    Or, Auto Shutdown occurs with the msg. '.. the process lsass.exe has terminated unexpectedly'
    Let me elaborate the Hang situation a bit, this is very new to my experience. I can launch some programs like Notepad.exe, but when forefox or IE does not run. TaskManager icon appears at the system tray, but the program interface does not appear, as if TaskManager is running while minimized.
    And when i try to shutdown the computer from the start menu, the User Log off/Switch User option appears, instead of the Shutdown options.
    Any help will be highly appreciated.
    Thank you for your time.
    -Raquib
    Message Edited by duckster on 15-Apr-2008 07:18 PM

  • Diagnostic and usage has low memory logs

    I noticed that I have 3 memory low logs in my usage data which makes no sense to me. I am careful to close out my apps and shut off my iPad when not using.  I
    How much memory do these come with? I have 64 gb so have plenty of storage but that is not the same as memory unless macs are different than pcs in that regards.  I pasted part of one below and do not understand how I could have 25722 pages active. There is no way I have opened that many pages. Can someone explain this log to me?
    thanks
    Incident Identifier: A9C3CFBE-FB45-41FD-8FA0-8FF5F015FB34
    CrashReporter Key:   12003f29baf1f3529d1bdf5b6e1c0d370e87cfc3
    Hardware Model:      iPad3,1
    OS Version:          iPhone OS 5.1 (9B176)
    Kernel Version:      Darwin Kernel Version 11.0.0: Wed Feb  1 23:18:07 PST 2012; root:xnu-1878.11.8~1/RELEASE_ARM_S5L8945X
    Date:                2012-03-23 20:26:40 -0400
    Time since snapshot: 70 ms
    Free pages:        1489
    Active pages:      25722
    Inactive pages:    15514
    Throttled pages:   146872
    Purgeable pages:   20388
    Wired pages:       57253
    Largest process:   Facebook
    Processes
             Name                 UUID                    Count resident pages
                  CW <02d0b979949f35cb805fb49a4092eb98>   11585
      SolitairesFree <e92412f375a9327b89d44596f1ee2e55>    1950
    Game Center~ipad <4def5485a9b63af5bd44081374f911b0>    7217
            TWC-iPad <eccce978a7fa31499bcd7b98d3d1cebf>    8254
         Preferences <f7fe5488030c3dc7bd7a7eb0b43d3f88>    2288
            AppStore <6048ba6872873eacaf9891d916676324>    9654
          MobileMail <eed7992f4c1d3050a7fb5d04f1534030>    1645
         MobileStore <f93e54a78c833aedaae9ccdc2d454ddc>   13803 (jettisoned)
            Facebook <634c3f44446b37e38e896aacfe5db282>   48165 (active)
          Music~ipad <feaeeb513e9c35c99e16dcc59d2fee82>    1429
    WordsWithFriends <f5f78622781e336982b296542844b81f>   23831
            networkd <10e39e61090b3c999ae580c8a2b862d0>     267
          aosnotifyd <9fbc1c99b00f34c5978eabca0ed855d6>     713
            BTServer <f3607d9648b93be69fbec2e2e7bb7c97>     345
          aggregated <a12fa71e6997362c83e0c23d8b4eb5b7>     508
                apsd <0f4cea84e4833057ab2816ca5d9e4b7b>     452
         dataaccessd <473ff40f3bfd3f71b5e3b4335b2011ee>    1177
        fairplayd.J1 <e21189305e6b339b8bb329d3f06ecf31>     372
           fseventsd <914b28fa8f8a362fabcc47294380c81c>     256
                iapd <84e86122efe33ef7a9d874a8d86f07ef>     693
             imagent <a17aacef550b334496f644607a6bb12c>     498
           locationd <de6edddaae23368db41a2d1d3ced1503>     940
       mDNSResponder <86ccd4633a6c3c7caf44f51ce4aca96d>     353
        mediaremoted <327f00bfc10b3820b4a74b9666b0c758>     394
        mediaserverd <2fb463599bb63562a7d81375204a56ec>    3791
               wifid <1e99f4977ee43d93ab83f5b4b4b3b95b>     473
           lockdownd <0095f750159533739e1f21d40733b2cc>     361
              powerd <133b7397f5603cf8bef209d4172d6c39>     276
    CommCenterClassi <b923f5c5355d34cd9f2a01b8230515e3>     454
             syslogd <7153b590e0353520a19b74a14654eaaa>     149
         SpringBoard <8a3476a1ccde31e9a779449383233fa8>   15418 (active)
             configd <ee72b01d85c33a24b3548fa40fbe519c>     452
             notifyd <f6a9aa19d33c3962aad3a77571017958>     254
      UserEventAgent <dc32e6824fd33bf189b266102751314f>     672
             launchd <5fec01c378a030a8bd23062689abb07f>     176
    **End**

    I can't explain why you're getting these low memory logs, or whether they really mean anything serious. But I can explain some of what's listed in the log.
    You're right that storage and memory (RAM) are different; this is just as true on an iOS device as on a PC or Mac. In your case, you have an iPad 3rd generation, which comes with 1 GB of memory. The low memory log is intended for developers, and the "pages" have nothing to do with web pages. They are "memory pages", small fixed-size blocks of memory which are managed by the operating system. The OS divides the entire memory of the machine into these pages and parcels them out to running applications. (This is normal practice on pretty much any modern computer system.) In iOS, these pages are 4 kilobytes in size, so your machine has a total of 262144 pages of memory (1 GB divided by 4 KB). A small fraction of these pages will be reserved by the operating system for its own needs.
    The list of processes at the end of the log shows what was running on the system at the time. It includes running user applications as well as various background system services which are hidden from the user. The column "Count resident pages" lists how many pages of memory each running process was currently using. Facebook is the largest process, using 48165 pages.
    The section above the list of processes is a breakdown of the memory by how it's being used. The relatively low number of "Free pages" is not unusual; free pages are memory pages which are kept completely unused, just in case something needs extra memory, and most modern operating systems try to keep as much memory in use as possible. After all, if you've paid for the memory in the system, you want it to be doing something useful. If some process needs more memory, but there aren't enough free pages available, the operating system will check other memory pages in use to see if any of them can be freed up somehow.
    As for the rest of the breakdown, "active pages" shows pages currently in active use by some process (meaning that the process has used them very recently), and "inactive pages" shows pages which are in use by a process but which haven't been referred to very recently (these might potentially be freed up). "Wired pages" are memory pages which are currently being used by the operating system and cannot be freed under any circumstances. While it's normal for some pages to be wired, a large number of them may make it harder for the operating system to find enough free memory. "Purgeable pages", on the other hand, are pages which it's perfectly OK for the operating system to free whenever memory is needed.
    Unfortunately, I can't figure out what "Throttled pages" refers to. It has something to do with iOS's memory management, but I can't find an explanation of the terminology.
    If any of this seems opaque or obscure, I apologize. Operating system memory management is a very complex topic, but I tried to keep this discussion reasonably understandable.

  • I have a macbook 4.1 with osx10.6.8 and just added memory (2gig) so I could sync my new Ipome and Ipad.  and Ipad. Now I'm told I need to upgrade my operating system. The apple store gave me conflicting instructions. Any suggestions? Thanks

    I have a macbook 4.1 with osx10.6.8 and just added memory (2gig) so I could sync my new IPhone and Ipad. Now I'm told at the apple store that I need to upgrade my operationg system. They said they couldn't help and gave me conflicting advice about what to do. Any ideas? Thanks you!

    There are three models of MacBook that comprise the 'macbook 4.1' category, and each of them a little different; however other than 'macbook 4.1' the other thing they have in common is they all are considered Early 2008. Two are white, one black, polycarbonate case, Core2Duo 2.1GHz, 2.4GHz white, 2.4GHz black.
    So if you can determine which one, if any of these, is the model build year and spec you have, that would be handy. Did you tell whoever you spoke to the serial number of your computer, so they'd know by looking up the specs to see what the supported maximum RAM upgrade capacity was, and other minimum requirements to make any upgrade to Mac OS X 10.6.8 at all?
    If you have the serial number you can do a lookup to 'indentify by serial number' online, and use that information to determine if the computer needs even more RAM to take it past the minimum for Snow Leopard 10.6.8 and then get it ready to upgrade (via paid download from App Store, Snow Leopard gets you that far) and see what the next supported OS X full upgrade would be for the hardware limitations on that old MacBook.
    If your MacBook IS a 4.1 build, the highest OS X it could run if it has the 2.4GHz cpu, is Lion 10.7.5. That would be an upgrade from the App store, available to OS X 10.6.8+ computers that access it online. And I kind of doubt how supported a newest iphone etc may be in lion.
    everymac.com has a fair amount of information across many years of Apple computing hardware...
    Here's the three MacBooks that share the 4.1 designation; first shipped with as much as 1GB RAM upgrade and the other two only a 2GB RAM*, (one white/one black color) according to this information...
    • MacBook "Core 2 Duo" 2.1 13" (White-08) 2.1 GHz Core 2 Duo (T8100)   
    • MacBook "Core 2 Duo" 2.4 13" (White-08) 2.4 GHz Core 2 Duo (T8300)  
    • MacBook "Core 2 Duo" 2.4 13" (Black-08) 2.4 GHz Core 2 Duo (T8300)
    ...as seen here: http://www.everymac.com/systems/apple/macbook/index-macbook.html
    *But according to MacTracker (free: download database) http://mactracker.ca
    these MacBooks can use more RAM in aftermarket specs as much as:
    Maximum Memory
    6.0 GB (Actual) 4.0 GB (Apple)
    Memory Slots
    2 - 200-pin PC2-5300 (667MHz) DDR2 SO-DIMM
    To get more information use a service such as this...
    •identify by serial number:
    http://www.powerbookmedic.com/identify-mac-serial.php
    The Apple? store or whoever you talked, to may have been as accurate as they could be without further research. Could be you may have a newer or older MacBook, which would change whatever later OS X it could run past 10.6.8. And to go past Snow Leopard, you need to download the last bits for 10.6.x to be able to go and get any later upgrade. The ones that may let a newest iphone or ipad work with it, are past SL10.6.8
    Anyway, as you further verify the model build year and configuration specifications, report back.
    Good luck & happy computing!

Maybe you are looking for

  • Why is it so hard to change my plan and upgrade my phone?

    My droid 2 has not been working properly for the last month (send button for text broke) so I thought I would upgrade my phone to the droid 4 and go with a new plan ( 2 years is way up)....Wow, I'm getting treated like crap...I have been with verizon

  • Is there a way to get the cover wall (in music app) in ipad as it is for the iphone?

    Hi there Is there a way to have the cover wall in the ipad ios7 as it is in the iphone? (This is a very convenient way to browse a library) Thanks

  • Language Import Supplementation

    Hi I am importing a new language (French) into our NW04 ECC 5 system, we already use English and German which are standard. 1) I plan to import the language from the .PAT file into client 000 using SMLT 2) Import previously imported Support packs for

  • Question about syncing

    If I have a classic iPod that was originally sync worth a Mac and decide to sync it with an HP instead will I lose my stuff?

  • JSF vs. Springs

    Hi, We have a requirement for the project in which we have to define the advantages of JSF over springs MVC. But I am not able to find any such advantages. Could anyone provide me those advantages of JSF over springs MVC. Regards Kapil