Kstat_lookup() failing: "Not enough space"

Hi,
I have a peculiar problem. I'm looking up CPU statistics using kstat(), and I'm getting a failure in kstat_lookup() on some machines.
Here is the relevant code:
kstat_ctl_t* pKstatCtl;
kstat_t* pCpuStats;
if ((pKstatCtl = kstat_open()) == NULL)
// Handle error...
if ((pCpuStats = kstat_lookup(pKstatCtl, NULL, -1, "cpu_stat0")) == NULL)
// Handle error...
... // kstat_read(), etc.
I am compiling this program on Solaris 2.6, and it works fine on every 2.6 machine I've used. It is interesting to note that, when I run "truss" on the program and watch the results of iostat(KSTAT_IOC_READ), it returns a number in the range of 600-800. I think this is the number of bytes read.
When I run this program on a Solaris 2.8 machine (without recompiling it there, for reasons which are too complicated to explain here), it works most of the time. However, one of these 2.8 machines is having problems. The kstat_lookup() call fails, and strerror(errno) returns "Not enough space". Note that it's not the kstat_read() that's out of space, it's kstat_lookup(). I tried running the program on another 2.8 machine in the same cluster, and it worked. However, truss told me that ioctl(KSTAT_IOC_READ) was returning 264752.
What's going on here? Why is kstat_lookup() failing with "Not enough space"? Why does this work on one machine and not another?
Thanks,
Chris

Jason - the discs may be advertised as having 4.7GB of space, but in fact this is a bit of an urban legend - it all depends on how you count the bits, in groups of 1000 or in groups of 1024. Disc manufacturers like to count in 1000's, which gives a larger capacity, whereas your computer will count in groups of 1024...
If you allow 4.37GB per disc, you'll be much nearer the mark.

Similar Messages

  • Help: startup-config file open failed (Not enough space)

    Who can help me ? I've an uc500 and he stil running. Now i want to change something and want to save the configuration first. But the following message appears : startup-config file open failed (Not enough space)
    this is the output from a dir flash:
    Directory of nvram:/
      227  -rw-       25897                    <no date>  startup-config
      228  ----        1933                    <no date>  private-config
      229  -rw-       25897                    <no date>  underlying-config
        1  ----          83                    <no date>  persistent-data
        2  -rw-           0                    <no date>  ifIndex-table
        3  -rw-         577                    <no date>  IOS-Self-Sig#1.cer
        4  -rw-         615                    <no date>  IOS-Self-Sig#2.cer
        5  -rw-         660                    <no date>  vlan.dat
        6  -rw-         107                    <no date>  cca.xml
        7  -rw-         586                    <no date>  IOS-Self-Sig#3.cer
    262144 bytes total (227094 bytes free)

    OK.
    Try this:
    conf t
    service compress-config
    And see if that helps. 
    If not, see if you can tftp the running config off the router and TFTP it back to startup-config:
    copy run tftp
    copy tftp start
    Then you can try a reload and see if it is cured.
    I googled and found a few cases where alot of ACLs or NAT rules could cause MALOC errors (you would see those in your logs) when implemented and could manifest itself in this condition, which could be cured after the next reload, which is why I suggested that.
    Of course, dont be remote when you do this and only do it during a maintenance window.
    Steve

  • I recently took my imac in for a recall on the hard drive, they replaced my hard drive, i used time machine to restore all my files. Now when I turn time machine on it says back up failed not enough space, it is not overwriting old back ups.

    I recently took my imac in for a recall on the hard drive, they replaced my hard drive, i used time machine to restore all my files. Now when I turn time machine on it says back up failed not enough space, it is not overwriting old back ups. Why? Please help

    http://pondini.org/TM/FAQ.html

  • HELP: ld: fatal: file /dev/zero: mmap anon failed: Not enough space

    Trying to build a debug version of our code using Solaris 10 and SunStudio 12, and we get this error:
    ld: fatal: file /dev/zero: mmap anon failed: Not enough space
    Any idea?
    The ld process grows to ~4GB then dies.
    The compile server has plenty of memory and swap available.
    Any idea? Our program is getting quite large, but I am sure there are larger ones out there.

    The only suggestion I have is to switch to stabs debug format (-xdebugformat=stabs compiler option) and don't specify -xs so that most of debug info is stored in .o files. Maybe it'll save some linker address space. Other than that, try asking on linker forum:
    http://www.opensolaris.org/jive/forum.jspa?forumID=63
    I know that it's a hot topic and you will probably get an answer as soon as someone from linker team take a look.

  • Restoring backup in itunes fails- not enough space

    After upgrading ios on my iphone 4s all contacts lost. Tried restoring from itunes only to get message "Can't restore...not enough space on iphone" when there is plenty. Have taken screen shot. Help. Spent several hours trying to find support for this. I'm new to communities so patience please.
    This has really put me off switching to the Apple environment which I was considering doing. Think I'll go down the Google/Android/Samsung product route.

    nutdrum wrote:
    This has really put me off switching to the Apple environment which I was considering doing. Think I'll go down the Google/Android/Samsung product route.
    Thanks for letting us know.
    Good luck!

  • Lion install fail - "not enough space" - I have over 90g...?

    Tried installing Lion from the app store on my Core 2 Duo iMac 2.4/1GB/250GB. Message says there is not enough space even though I have over 90gb on the hard drive. I repaired permissions, ran software update to make sure I was on the latest version of Snow Leapard...what gives? Any ideas?

    2.4/1GB/250GB - There's your problem. Lion requires 2GB ram, minimum.
    Frank
    Oops - 1 minute too late.

  • Migration assistant to copy from mac mini internal drive to second internal drive fails, 'not enough space'

    I have a 2011 mac mini and I just installed a second internal HDD using an OWC data doubler kit. So now I have two internal HDD.
    The original HDD is 750 GB and the new one is 1 TB. After the installation I manually formatted the 1 TB drive with one Mac OS Extended  (Journaled) partition.
    I then installed a fresh copy of Mavericks on the new 1 TB and during the installation tried to use Migration Assistant to move my user account over (mainly to get all the iTunes and iPhoto stuff).
    The original HDD 610 GB used, so 140 GB free.
    Migration Assistant correctly detects the original HDD but when I try to copy things over it says there is not enough space.
    Can anyone help me figure out what I need to do to get Migration Assistant to move my stuff from the original HDD over to the new one?

    I feel like such an idiot. I had manually tried to copy files over using the command line before I found out about the Migration Assistant tool. My manual copy had used up 500 GB.
    I deleted all of that and now I have no issues with the Migration Assistant.
    Sorry for taking your time!

  • Time Machine Backup failed, not enough space...

    Have iMac, Yosimite OS 10.10, processor 3.1 GHz Intel Core i5, memory 12 GB 1333 MHz DDR3, internal HD - 1TB, Time machine id 1 TB external La Cie. I see that I have 260 GB left on Time Machine disk, on Time Machine window. Additional message, "Needs 266.46 GB for back up, thus "backup failed". What is my next step? Thank you very much indeed!

    Try C4 in the 1st linked article.
    Time Machine Troubleshooting
    Time Machine Troubleshooting Problems

  • Volume erase failed: Media kit reports not enough space on device

    I was having problems with the external drive where I store my Time Machine backups, so I tried plugging and unplugging the drive (per earlier advice, and something that had worked in the past), but could not mount the drive. I ran Disk Utility and tried to verify the disk, which told me the disk needed to be repaired. I tried to repair the disk only to get an error message that Disk Utility could not repair the disk and it needed to be reformatted. So I tried to erase the disk with Disk Utility only to get the error message "Volume erase failed: Media kit reports not enough space on this device for requested operation". I am not sure what else to try at this point and could not find any similar questions here.
    The drive in question is a 3TB USB Seagate Backup + Desk Media, formatted as Mac OS Extended (Journaled). It's divided into two partitions, one of which (2.2 TB) holds only Time Machine backups of my desktop and laptop and the other of which (800GB) is formatted similarly with some files stored on it. I was able to verify and repair this other partition. I'm running Disk Utility 13 on an iMac (2.8 GHz Intel Core 2 Duo) running OSX 10.8.5
    Any suggestions for what to try next would be appreciated.

    Just to let you know I appear to have the *exact* same problem, even down to the 3TB hard-drive in question.
    I read recently that a time machine backup should have its own physical hard disk, not a separate partition on an otherwise-used disk. I wish I'd known that in advance of buying the external drive, as I would not have invested in a 3TB one if I had known I could only use it for Time Machine alone.
    Dianeoforegon does make a fair point, though, in saying that all backups in one place is asking for problems down the line.
    Incidentally, this Time Machine problem first started occurring when I upgraded to Mavericks. 9 times out of 10 my Time Machine partition would go corrupt for no reason. This definitely hadn't been happening at all before Mavericks. That same upgrade also killed off my entire Boot Camp partition, which caused me major headaches and I eventually had to simply reformat that partition and start again.

  • Installation fails with "not enough space" message ...

    Installing Application Server 8.1 on Solaris Sparc on network with lots of space but get this message in the log file of the failed installation:
    ERROR - exception while updating command line utilities
    Not enough space
    ERROR - default domain creation returned following exception: /home/lm71165/SUNWappserver/bin/asadmin: not found
    INFO - End core server configuration.
    Any ideas on why this occurs?
    Thanks.

    "Not enough space" message is issued by J2SE due to lack of swap space and not disk space per se in this case.
    To resolve this, first uninstall partial installation using provided uninstall utility (available in installation directory). Then, make sure that you free some additional swap space: delete all unnecessary content from /tmp partition and shut down all unnecessary processes running on the system. Once you do this, you can restart the installation.

  • "install failed: not enough install space" error

    I have a Palm Pre and am getting a "install failed: not enough install space" error when I try to install an app unless I remove one first.
    The phone shows that I have 5.8GB of space left.
    I'm guessing that this means there is a limit as to the number of apps that can be installed.
    Does any one know of any way to increase the number of apps that can be installed?
    If not I guess I'll kill some of the worthless Spring apps on there...
    Any help you can provide would be appreciated.
    Thanks!
    Christian 
    Post relates to: Pre p100eww (Sprint)
    Post relates to: Pre p100eww (Sprint)

    I am at WebOS 1.1.0. The app itself does not matter, i.e. I can uninstall an app and after that, I can add another. When I get the error, it does not matter what app I tried to install, from where, or what method.
    I can replicate the issue no matter how I try to install an app: 
    Through the official Palm store (developer mode on or off doesn't matter): I get an error "Sorry, Not Enough Memory. Please delete an application you have installed to make room"
    Through FileCoaster: I get an error "install failed: not enough install space" error" 
    Through the SDK "drop to install" method: a DOS window opens and it looks like it's installing the app, but it never shows on the phone, so the install seems to fail
    I haven't tried installing the app through Novaterm, if it helps narrowing down the issue, please let me know and I'll give that a shot.
    Based on Flipflop 84's comments, it seems like there seems to be a limited amount of space reserved for apps (since he has less apps than me and is getting the error) rather than the number of apps being the issue. 5.8GB of free space are somewhat worthless if I can't use the space for apps, so I'd like to allocate an additional Gig of that to apps.
    So I guess the question has changed to "how do I increase the amount of space available on the Pre for installing apps?"
    I would think that would be simple for the Linux Gurus out there that seem to be able to disect and analyze the WebOS down to the atom level, but surprisingly, I haven't been able to find any information on it (and I'm a Linux noob myself, so I'd have to clue where to start looking).
    If you guys need me to try anything or need more information on anything, please let me know. 
    I appreciate everyone's help with this!
    Christian 

  • Trying to build a DVD image, DVDSP4 says not enough space

    I have many years' experience using DVD Studio Pro 4, so this hopefully is not a stupid question.
    I'm using an iMac with 80gb free and an external HDD with 12gb free.  I have authored a DVD in DVD Studio Pro 4.  The project says it's 4.6gb.
    I need to make a disc image file of the DVD so I can burn it to DVD media using another computer.  When I do this, it encodes for hours and then says "Formating Failed.  Not enough space of the output media"  (I might be paraphrasing.)
    The only possiblt output medias, the iMac and the external drive, both have plenty of space, and the project is under the limit.  So what gives?

    Let me try this again, because I think we're not communicating.
    I have authored a DVD Studio 4 project with menus and assets, etc.  It simulates just fine.  The tab on the top of the DVDSP screen indicates my project is 4.6gb.  This means I should have no problem turning this project into a DVD.  The computer I'm working on has no DVD burning capabilities so I want to create a disc image of the project instead of burning a DVD.  I have done this before, where DVDSP encodes and builds a file that I can then use Disk Utility to burn to a DVD.  So, once I have my disk image, I will transfer that file to another computer, and use Disk Utility on that second computer to burn the DVD from the disk image.
    NOW
    The problem I'm having is that DVDSP is not able to make the disk image.  When I go to "Build/Format", it should make a disk image, but instead, I get an error saying there is not enough space on the output device.  The "output device" in this case is my external Hard drive which has plenty of space.  That is why I am asking for help.

  • Getting Error "Not Enough Space" while deploying Java Webservice in AS

    Hello,
    I am trying to deploy a java web-service using OAS enterprise manager but getting an error saying "Not Enough Space". Below are the logs.
    [Jul 21, 2010 12:06:17 PM] Application Deployer for MathAppl STARTS.
    [Jul 21, 2010 12:06:35 PM] Copy the archive to /u02/oracle/product/install/SOAHome1/j2ee/oc4j_soa/applications/MathAppl.ear
    [Jul 21, 2010 12:06:35 PM] Initialize /u02/oracle/product/install/SOAHome1/j2ee/oc4j_soa/applications/MathAppl.ear begins...
    [Jul 21, 2010 12:06:35 PM] Unpacking MathAppl.ear
    [Jul 21, 2010 12:06:35 PM] Done unpacking MathAppl.ear
    [Jul 21, 2010 12:06:35 PM] Unpacking WebServices.war
    [Jul 21, 2010 12:06:35 PM] Done unpacking WebServices.war
    [Jul 21, 2010 12:06:35 PM] Initialize /u02/oracle/product/install/SOAHome1/j2ee/oc4j_soa/applications/MathAppl.ear ends...
    [Jul 21, 2010 12:06:35 PM] Starting application : MathAppl
    [Jul 21, 2010 12:06:35 PM] Initializing ClassLoader(s)
    [Jul 21, 2010 12:06:35 PM] Initializing EJB container
    [Jul 21, 2010 12:06:35 PM] Loading connector(s)
    [Jul 21, 2010 12:06:35 PM] Starting up resource adapters
    [Jul 21, 2010 12:06:35 PM] Initializing EJB sessions
    [Jul 21, 2010 12:06:35 PM] Committing ClassLoader(s)
    [Jul 21, 2010 12:06:35 PM] Initialize WebServices begins...
    [Jul 21, 2010 12:06:35 PM] Initialize WebServices ends...
    [Jul 21, 2010 12:06:35 PM] Started application : MathAppl
    [Jul 21, 2010 12:06:35 PM] Binding web application(s) to site default-web-site begins...
    [Jul 21, 2010 12:06:35 PM] Binding WebServices web-module for application MathAppl to site default-web-site under context root MathApple
    [Jul 21, 2010 12:06:37 PM] Operation failed with error: Error compiling :/u02/oracle/product/install/SOAHome1/j2ee/oc4j_soa/applications/MathAppl/WebServices: Not enough space
    When i checked the application server disk utilization, there is enough space. Below is the output.
    bash-3.00$ df -h
    Filesystem             size   used  avail capacity  Mounted on
    /dev/dsk/c1t0d0s0 15G 3.5G 11G 25% /
    /devices 0K 0K 0K 0% /devices
    ctfs 0K 0K 0K 0% /system/contract
    proc 0K 0K 0K 0% /proc
    mnttab 0K 0K 0K 0% /etc/mnttab
    swap 76M 960K 75M 2% /etc/svc/volatile
    objfs 0K 0K 0K 0% /system/object
    sharefs 0K 0K 0K 0% /etc/dfs/sharetab
    /usr/lib/libc/libc_hwcap1.so.1
    15G 3.5G 11G 25% /lib/libc.so.1
    fd 0K 0K 0K 0% /dev/fd
    swap 286M 212M 75M 74% /tmp
    swap 142M 67M 75M 48% /var/run
    /dev/dsk/c1t0d0s3 48G 17G 30G 36% /u01
    /dev/dsk/c1t1d0s0 67G 6.0G 61G 9% /u02
    Please help.
    -Mj

    Dear,
    As suggested, i have checked for the JVM configuration for low heap size but i found the value of MaxPermSize to be 256M. So, i guess this is not causing the "Not Enough Space" issue.
    Please let me know where else do I need to check as i completely clueless about this problem.
    Thanks for your inputs.
    -Mj

  • HT4946 cannot find itunes backup on my PC (win xp). want to move over to external hard drive to restore from backup bc PC not enough space

    i just restored my ipad2 to iOS 6.1.3 yesterday. i have been trying to restore from backup, but i keep getting error messages from itunes (running latest version of itunes) that says there is not enough space to save the backup on the computer. i have tried clearing up as much space on my PC (windows xp), but there is still not enough room. and ive tried disk cleanup on my computer and resetting the ipad and running it through recovery mode (as some articles sugggested it would help with restoring after failed attempts). i read on another question in the apple support discussions that someone just moved his whole backup folder into his external harddrive and then he was able to restore from backup.
    the backup is definitely saved on my computer (itunes confirms that), and the backup folder is supposed to be here  \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\, but im still not finding it with that file path. i get as far as "username" and then i dont see "application data" and so on. but when i try searching that file path in google chrome, i find it and i see it, but its strange that i cant find it in the "docs and settings" folder in my C drive.
    please help! i just want to be able to move the backup folder to my external to restore from backup. thank you in advance!!

    Thank you! I was able to find it. Im sorry, i have a few follow up questions. Does the iTunes have to be running from my external as well to do the restore from backup? And if so, how do I move iTunes to external and run it from there? Also, I just copied over the "backup" folder (last part of that file path to my external, is that enough, or did I have to copy it starting from the beginning (docs and settings and so forth)? Lastly, when I select restore from backup in iTunes, would it automatically know that it's the copy on my external to restore backup from? Or do I have to delete or do something with the original file path in my computer?
    Thank you!

  • Time Machine - "not enough space to back up" despite large drive

    Hi,
    I have a 2.7GHz Quad-Core 27" iMac from July 2011. It has a 2TB HD which I back up to an external single partition 2TB HD (WD MyBook) over Time Machine (TM). The iMac HD has about 1.4TB on it.
    It was "just working" until about 2 weeks ago, when I got a message that says in essence  "not enough space to back up: only 600GB available when 1.4GB is needed". There is one succesful 1.4TB backup. I get the error message hourly as it attempts to back up then fails. Previously there were multiple time stamped (houry, daily etc) backups but when I first got the error message, there was only one left, implying that TM deleted the earlier ones in its quest for more space.
    As there is a 2TB drive to back up 1.4TB, there should be loads of space as each backup should just log the changes, not the whole drive.
    However, TM is acting as if it needs the full 1.4GB free for each delta backup, rather than just space for the changes. This is new behaviour as it did not need this before.
    I have googled the issue extensively, checked FAQs etc and found two potential causes.
    The first is that I changed the name of my computer around the time that the problem appeared. This can apparently cause TM to not recognise old backups. I therefore deleted the old one and rebuilt my backup from scratch, hoping that the new name would be used. I was able to do one backup before the same issue appeared again.
    The second is that the sparsebundle needs to be resized manually due to a bug, but I can't find the sparse bundle on the external HD, even using Disk Utility (this maty be because I am being very stupid - I am a recent Mac user and do not have much experience of digging into OS X's innards)
    I am now at a loss as to what to do.
    I would be very grateful indeed if anyone had any thoughts that they could share.
    SE.

    Semper Eadem wrote:
    I got a message that says in essence  "not enough space to back up: only 600GB available when 1.4GB is needed". There is one succesful 1.4TB backup.
    It's trying to do a near-full backup for some reason, and it's already deleted all but the last remaining backup trying to make room. It was probably trying to back up about 1.2 TB, since it adds 20% to the estimated size.  That's likely your entire home folder.
    The first is that I changed the name of my computer around the time that the problem appeared. 
    No, that shouldn't cause it.  Apparently on some of the very first versions of Leoaprd, it did, but not since.
    The second is that the sparsebundle needs to be resized manually due to a bug,
    No, there isn't a sparsebundle on backups made to an internal or directly-connected HD.  Those are used only for network backups.
    What else did you do around the same time you changed your computer name?  See #D4 in Time Machine - Troubleshooting for common causes.  
    I'd recommend turning TM off, erasing the drive and doing a "full reset" per #A4 in that same link.  Then exclude most of the large folders in your home folder, per #10 in  Time Machine - Frequently Asked Questions. Then run a backup, and immediately run another. 
    If the second backup is more than a GB, use one of the apps in #A2 of Troubleshooting to see exactly what got backed-up the second time.  That may tell us what's going on.
    If it wasn't large, start removing the exclusions, one at a time.  Run a backup (that should back up the excluded item(s), then run another and see how large it is.   That should pinpoint the problem.

Maybe you are looking for

  • How do I set an exclusive password for the iCloud settings in my Mac at work?

    Here's the thing: I want to have my computer at work (MacPro) synched with iCloud (all my contacts and bookmarks). But to do and still feel safe that no one else would open System Preferences and mess up with the iCloud settings (for example, turning

  • Function in a variable

    Hello, I want to declare a variable who containt a function For exemple: <?xdoxslt:set_variable($_xdoctx,'test', subtr(toto,1,2)) ? > Can you help me with the correct syntax? thanks

  • File receiver : blank line at end of file

    Dear friends, we are using file receiver with file content conversion , tp : FTP The file has a flat structure & fixed length (no delimiters) : reordset parameters used- fieldFixedLengths each record is in a different line, but at the end of the reco

  • New CS4 Master Suite Installation fro Students

    I am a student in San Diego, and am taking an online class. I purchased the student version of CS4 Master Collection and did (what I thought was) a complete installation. However, after the install I noticed it did not install all the software that w

  • Question Lightroom mobile

    Unable to sign in to Lightroom Mobile on my desktop version. Does not recognise my Adobe ID, even after several attempts