Sponsored Content
Full Discussion: Swap in local zone
Operating Systems Solaris Swap in local zone Post 302464815 by brusell on Thursday 21st of October 2010 04:01:14 AM
Old 10-21-2010
Swap in local zone

Hello folks,
I have question regarding behavior of local zone which has no dedicated swap configured.
Zone has set only capped memory, and my question is if all memory is occupied if this zone will start to use swap from the global zone??

I'm little bit confused from information regarding swap I got in local zone.

Code:
root@xxx:/root # df -k swap
Filesystem            kbytes    used   avail capacity  Mounted on
swap                 53594624      40 53594584     1%    /var/run

root@xxx:/root # swap -l
swapfile             dev  swaplo blocks   free
/dev/swap            0,0      16 12582912 7729408

If there is no swap set why I see this values??

Many thanks

Cheers

Stan

Last edited by DukeNuke2; 10-21-2010 at 05:09 AM..
 

9 More Discussions You Might Find Interesting

1. Solaris

Not able to ping global zone from local zone

Hi Gurus I am not able to ping the local zone from global zone when i am trying to ping i am getting below ICMP Host Unreachable from gateway zone ( 192.268.35.210) for icmp from zone ( 192.168.35.210) to sun1 ( 192.168.35.210) However i can ping local zone from global please... (12 Replies)
Discussion started by: kumarmani
12 Replies

2. Solaris

Global zone name from local zone

How to check the global zone name from local zone. (6 Replies)
Discussion started by: fugitive
6 Replies

3. Solaris

Covert Global zone to local zone

Dears, I would like to convert solaris 10 x86 and solaris 10 sparc (Global Zones) physical servers into Local zones. i found a document which seems to be helpful but i'm stuck @ the 1st step. to test this i want to do it 1st on x86 system running under vmware ESXi and if it succeeds i will... (1 Reply)
Discussion started by: mduweik
1 Replies

4. Solaris

install jre in local zone

How can I install a new version of jre on a local zone? Since /usr is not writable in a local zone)? pls advise solaris10 sparc ---------- Post updated at 03:51 PM ---------- Previous update was at 02:34 PM ---------- jdk6 i mean (6 Replies)
Discussion started by: lhareigh890
6 Replies

5. Solaris

Boot a local zone from cdrom

Hi Is it possible to boot a zone from cdrom. If so please help in getting the steps to do so. (2 Replies)
Discussion started by: ningy
2 Replies

6. Solaris

SIGPWR on local zone

Can anyone explain how you can get a SIGPWR signal on a Solaris 10 local zone, but none of the other zones on the frame had a problem. :confused: (1 Reply)
Discussion started by: JerryHone
1 Replies

7. Solaris

zlogin can't logon to local zone

Hi, Here is the issue: Please help! (4 Replies)
Discussion started by: aixlover
4 Replies

8. Solaris

Solaris 10 local zone on Solaris 11 global zone

Hi, A quick question: Can Solaris 10 local zones be moved to a Solaris 11 global zone and work well? Thank you in advance! (5 Replies)
Discussion started by: aixlover
5 Replies

9. Solaris

New ZFS FS not seen on local zone

Hi , I added a new fs to the global zone and also did the zonecfg to add the FS to the zone but finally I do not see the new "FS" on the local zone. Even in th e/etc/zones/zone.xml the fs and the correct directory is mentioned. Any Idea please ? (4 Replies)
Discussion started by: manni2
4 Replies
MALLOC_ZONE_MALLOC(3)					   BSD Library Functions Manual 				     MALLOC_ZONE_MALLOC(3)

NAME
malloc_create_zone, malloc_destroy_zone, malloc_default_zone, malloc_zone_from_ptr, malloc_zone_malloc, malloc_zone_calloc, malloc_zone_valloc, malloc_zone_realloc, malloc_zone_memalign, malloc_zone_free -- zone-based memory allocation SYNOPSIS
#include <malloc/malloc.h> malloc_zone_t * malloc_create_zone(vm_size_t start_size, unsigned flags); void malloc_destroy_zone(malloc_zone_t *zone); malloc_zone_t * malloc_default_zone(void); malloc_zone_t * malloc_zone_from_ptr(const void *ptr); void * malloc_zone_malloc(malloc_zone_t *zone, size_t size); void * malloc_zone_calloc(malloc_zone_t *zone, size_t num_items, size_t size); void * malloc_zone_valloc(malloc_zone_t *zone, size_t size); void * malloc_zone_realloc(malloc_zone_t *zone, void *ptr, size_t size); void * malloc_zone_memalign(malloc_zone_t *zone, size_t alignment, size_t size); void malloc_zone_free(malloc_zone_t *zone, void *ptr); DESCRIPTION
The malloc_create_zone() function creates a malloc zone, advising an initial allocation of start_size bytes, and specifying flags The returned malloc zone can be used to provide custom allocation and deallocation behavior, and to retrieve additional information about the allocations in that zone. At present there are no client settable flag values recognized by malloc_create_zone(), the flags argument should always be passed as zero. The malloc_destroy_zone() function deallocates all memory associated with objects in zone as well as zone itself. The malloc_default_zone() function returns the default system malloc zone, used by malloc(3), and free(3). The malloc_zone_from_ptr() function returns a pointer to the malloc zone which contains ptr or NULL, if the pointer does not point to an allocated object in any current malloc zone. The malloc_zone_malloc(), malloc_zone_calloc(), malloc_zone_valloc(), malloc_zone_realloc(), malloc_zone_memalign(), and malloc_zone_free() perform the same task on zone as their non-prefixed variants, malloc(3), calloc(3), valloc(3), realloc(3), posix_memalign(3), and free(3) perform on the default system malloc zone. RETURN VALUES
The malloc_create_zone(), malloc_default_zone(), and malloc_zone_from_ptr() functions return a pointer to a malloc_zone_t structure, or NULL if there was an error. The malloc_zone_malloc(), malloc_zone_calloc(), malloc_zone_valloc(), malloc_zone_realloc(), and malloc_zone_memalign() functions return a pointer to allocated memory. If there is an error, they return a NULL pointer. They are not required to set errno. SEE ALSO
malloc(3), posix_memalign(3) BSD
Aug 13, 2008 BSD
All times are GMT -4. The time now is 07:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy