General :: Changing Maximum Shared Memory Size

Jul 17, 2011

How do I change the size of the available shared memory on Linux?evidently 4GB is not enough for what I am doing (I need to load a lot of data into shared memory - my machine got 8GB of RAM).

View 2 Replies


ADVERTISEMENT

Ubuntu :: Increase Maximum Amount Of Allowed Shared Memory?

May 17, 2011

My problem is I installed Zone Minder for camera security and I'm testing it on my laptop with the built in webcam and everything seems to work perfectly except when I try to view the live feed from the camera, it's just a black box. No video.

I checked this website and it's exactly the problem I'm having with a fix for it but his fix doesn't work. He says to type:

Code:
user@ubuntu:~$ sudo echo "256000000" > /proc/sys/kernel/shmmax
user@ubuntu:~$ sudo service apache2 restart
user@ubuntu:~$ sudo service zoneminder restart

But when I do the first line, I get this:

Code:
deemar@Clementine:~$ sudo echo "256000000" > /proc/sys/kernel/shmmax
bash: /proc/sys/kernel/shmmax: Permission denied

View 2 Replies View Related

General :: Trash Has Reached Maximum Size

Mar 8, 2011

When I try to delete a file, ( move to trash ) It says , The trash has reached It's maximum size! clean the trash manually. When I click on the trash icon on desktop it is empty. Where is the trash? Where can I delete these files ?

View 2 Replies View Related

General :: Using / Usr / Bin / Time Always Returns 0 When Getting Maximum Resident Memory?

Mar 5, 2010

First time here at LQ, so if the post is in the wrong place, this is a bit programming related. I've been trying to find the maximum resident memory of a process in a memory constraint situation.

Instead of using top, or ps, which gives me real-time snapshot at the memory usage of a process, is there a way to determine the maximum resident memory used by a process? /usr/bin/time seem to provide this functionality within the format string

[Code]...

The minor page-fault is suspicious, does that mean memory is being used.. but not recorded? if so, how can I know how much memory is being mapped?

View 3 Replies View Related

General :: Boot - Maximum Vmalloc Parameter Size?

May 31, 2011

First off all, I'm booting from a large MEMDISK using PXE (900MB) . Due to our environment, I cannot decrease the size, nor move files to a nfs/iSCSI/... environment. Everything needs to be in that MEMDISK.

Now, when I try to run the OS, I get out of vmalloc space. How do I increase it to a number which allows such a large image to be mapped? I tried the parameter "vmalloc=1280M", but with that parameter, I don't get past the Booting the kernel screen.

Memory should not be an issue, since the machine(s) have at least 2GB RAM. (900MB MEMDISK + 256MB for other kernel stuff + 768MB for user stuff). The machine(s) have a Pentium 4 Extreme Edition processor, with hyperthreading and SSE2, but no EM64T.

How can I boot the system, and get past that message? Decreasing the MEMDISK size is not possible too. It is at the smallest we can get with our userland + kernel + modules.

View 1 Replies View Related

General :: 512KB Maximum Transfer Size Per Command?

Apr 7, 2011

I'm using fc14 and the SG driver to test some SCSI (SAS) targets. In doing so, I'm bumping up against what appears to be a 512KB maximum transfer size per command. Transfers up to 4MB sometimes work, but often they result in ENOMEM or EINVAL returned from the write() function in the SG driver. I could not find any good documentation on how the SCSI system in Linux works so I've been studying the source for drivers in drivers/scsi.

I see that there is a scsi_device struct that contains a request_queue struct that contains a queue_limits struct that contains an element called max_sectors. The SG driver seems to use this to limit the size of the reserve buffer it is willing to create. I see that there are several constants used to initialize max_sectors to 1024 which would result in the 512KB limit I see (with targets having 512 byte sectors). At this point I have several questions:

1) When the open() function for the sg driver gets called, who initializes the scsi_device struct with the default values?

2) Can I merely change the limits struct to arbitrary values after initialization and cause the SG ioctls to set the reserve buffer to allow greater values?......

View 2 Replies View Related

General :: Find Out Maximum Size Of A Image Disk File Created By Kvm-img?

May 22, 2011

I created a VM disk image with kvm-img, but I forget what was the max size of that disk image when I created it. Currently, its size is 6.2G, I want to install some large packages in that VM, so I want to make sure the disk image can expand to an adequate size.

View 1 Replies View Related

General :: Break Copy Process When Folder Size Reaches Its Maximum?

Mar 19, 2011

I have written a script.

#/bin/bash
a=`du -sh /root/samplefolder | cut -f1`
echo $a > testfile

[code]....

The aim of this script is, when the folder reaches 20M then attributes will be set to that particular folder so that no newfiles and folders cannot be created or copied to that samplefolder. whenever i copy a file morethan 20M to that folder its getting copied fully and then the attributes were applied. But i dont want this to happen, when the folder reaches its maximum current write operation to that folder should be stopped automatically with a error.

View 5 Replies View Related

General :: Squid Cache_dir Hard Disk Space Reaching The Maximum Size?

Jan 20, 2010

I have set up squid server. My cache directory has been set up as per following statements.cache_dir ufs /Cache1/squid 10000 16 256cache_dir ufs /Cache2/squid 10000 16 256Now the problem is that size of /Cache1 and /Cache2 has reached to about 8GB and in near future it will reach the maximum limit of 10GB. I just want to know that whether I need to delete the contents of these directories or otherwise.

View 1 Replies View Related

Programming :: Create A Shared Memory And Some Shared Objects?

Jun 11, 2010

I want to create a "Shared Memory" in linux, then create multiple "Shared Objects" that can access to a Table for example; And one of them can write something into the Table and the other can access and read it, so that these operations can be handled by programmer! I'm using Ubuntu 9.04 and I've set it's runlevel at 3 (I have commandline environment now!) I've searched the Internet so much, but couldn't find a good sample code for this! I have no experience about it and need your help to introduce me a sample code about it and advise me how to compile and use it with "GCC"?!

View 6 Replies View Related

Hardware :: Mkpart With Maximum Size Available?

Feb 2, 2010

how to mkpart with maximum size available?

mkpart primary 0 3001G

I have 3TB raid disk. I cannot install centos using GPT partition. I need to use parted and mkpart to format it.

View 1 Replies View Related

General :: USB Memory Stick Has Doubled In Size - Why Is So?

Nov 24, 2010

I have an OCZ Mini-Kart USB stick which says 2GB on it, and it has been a 2GB stick for the last 3 years. However, I recently put it into a PC running XP (which had no viruses as far as I am aware) and all of the files in the single subdirectory became corrupted and unreadable. All files at the root of the USB stick were fine, and I could still boot from it (I had Puppy linux installed).

I looked to see if the corrupted files in the subdirectory were recoverable, but they were all inaccessible, (with freshly mangled file-names containing multiple copies of the characters '�' and '=' amongst others), and reporting file sizes of up to 1.9GB each. I examined the memory stick with fdisk and with Gparted, and saw that it was reporting two 2GB partitions, which was certainly not the case before, as I had recreated the partition table several times in the past.

I removed all partitions, created a new partition table and recreated a single partition, which is now 4GB in size. I have trashed it and recreated it three times, formatting it with ext3, ext2 and finally FAT32, all of which reported a partition size of 4GB. I currently have a 4GB FAT 32 partition, and have tested it by successfully copying a 3GB .iso file to it.

Although it's nice to have a 4GB memory stick, it does seem rather odd and I no longer trust it with my data.

View 8 Replies View Related

General :: Find Memory Usage Of Shared Library Running In System?

Nov 30, 2010

I need to find the memory usage of a shared library loaded in Linux environment.

I need this information for deciding on whether to make the library part in to application or a seperate application itself.

View 3 Replies View Related

Ubuntu Servers :: Set Maximum Attachment Size?

Jun 4, 2011

I use U-server. I set up an mail server as described in Ubuntu Documentation > Ubuntu 11.04 > Ubuntu Server Guide > Email Services.

How can I turn off maximum attachment size. On my server I don't want to limit the size of e mails that arrives.

I manage my server with webmin

View 2 Replies View Related

Server :: Loopback Device - Maximum Size

Sep 24, 2010

This seems like a relatively simple question, but the answer seems to elude everyone: What is the MAXIMUM SIZE of a Linux loopback device (not counting any specific filesystem limitations)? Is it the maximum size of a linux block device?

View 4 Replies View Related

Programming :: Maximum Heap Size For A Process?

Mar 15, 2011

Is there any maximum limit to the heap memory allocation?My program is in PERL and i am using a solaris system. when i did "pmap pid" (pid = my process id) it is showing a number of heap memory allocated and all of them with GB sizes. This single process is eating up most of the physical memory.Is it normal and is there any way to get the heap memory size down

View 3 Replies View Related

CentOS 5 :: Find Out Maximum I/O Request Size?

Nov 28, 2009

How do I find out maximum I/O request size?

I'm using CentOS release 5.2

I know that the default size is 128 K, how do I find out/confirm this?

View 1 Replies View Related

Slackware :: Limit For Maximum Amount Of Locked Memory?

May 9, 2011

When I run ardour sound editing I get this message , but it starts ok Your system has a limit for maximum amount of locked memory! This might cause Ardour to run out of memory before your system runs out of memory. You can view the memory limit with 'ulimit -l', and it is normally controlled by /etc/security/limits.conf

bash-4.1$ ulimit -l
64
my limits.conf is like this
audio - rtprio 99
@audio - memlock 250000

[Code]...

View 2 Replies View Related

General :: Changing The Font Size At Cmd Prompt?

Sep 13, 2010

i have changed my monitor from crt to lcd and find the fonts to be a little out of focus,

so far i have achieved native resolution of 1280x1024 in gnome which is great! i have configured grub by adding the vga=xxx appropraite for native resolution of my monitor which is great !.........but herein lay the problem, everything is so small and stuck up in the left corner , so small that i cant read it very well.

how do i increase the font sizes at cmd prompt without changing the resolution ? dare i say ........in windows i would increase the DPI , how do i achieve this in centos ?

View 7 Replies View Related

Programming :: Restrict The Perl Array Maximum Size?

Feb 9, 2010

How to restrict the maximum size of an array variable in perl such that Ishould not be able to have array elements beyond the maximum size?

View 7 Replies View Related

Ubuntu :: Maximum Allocatable Heap Size For A Process?

Mar 30, 2010

I'm wondering what's the maximum heap space a process can use (not necessarily by a single malloc()) in Ubuntu x86_64. Which parameter determines the size

View 7 Replies View Related

Ubuntu Multimedia :: Changing Screen Resolution To Maximum Settings?

Jan 26, 2010

Just got an HP dv6-2150 laptop. Dual boot with Windows 7 and 9.04 (9.10 will not work but that's a different story). The screen resolution is too low and is set at the highest option available (1024x768 which is a 4:3 aspect ratio). The HP uses the new Intel i3-330m chipset with on-board Intel HD graphics. The system is capable of 1366x768 resolution (16:9) - so how do I get it there? xorg.conf looks real generic - nothing specific to Intel.

View 7 Replies View Related

General :: Changing Font Size In Text Mode Terminal?

Apr 10, 2011

I have a ubuntu linux working in TEXT mode. I would like the change the font size (or if possible, get my terminal with inconsolata font). How can i do it?

PS: i don't have a GUI or X Windows running.

sudo dpkg-reconfigure console-setup

View 1 Replies View Related

General :: Wrote A Program That Multiplies 2 Matrices Using Multi-threads And Another One Using Multiple Processes And Shared Memory?

Sep 22, 2010

I wrote a program that multiplies 2 matrices using multi-threads and another one using multiple processes and shared memory. Both in C.I need to find the total memory usage of these programs. I know of the top command, but when my matrices are relatively small they don't even show up on top because they complete so fast, how can I find the memory usage for these instances?Also, how can I find the total turnaround time of my programs

View 1 Replies View Related

Software :: Both GThumb And Geeqie Image Viewers Have Limited Maximum Size For Thumbernails?

May 22, 2010

Both gThumb and Geeqie image viewers have limited maximum size for thumbernails. Is there any way to work with bigger thumbernails (or slide photos)?

View 3 Replies View Related

General :: Split A Gzip File Based On Size And Have A Prefix Without Changing Extension?

Jan 18, 2010

have a gzip file ABC_000023232.gzipBCD_023232032.gzipI want to split these files into smaller files but keep the extension same because I am using this as a variable in a script

Code:
for i in `ls *.gzip`
split -b 500K $i $i

[code]...

View 3 Replies View Related

Ubuntu :: Unity Launcher Configuration - Changing Size Of The Launcher Bar Or Icon Size

Apr 28, 2011

How do you access preferences for changing size of the launcher bar or icon size, etc? I looked through system settings and could not find it.

View 4 Replies View Related

Fedora :: User Memory Allocation - Set A Maximum Limit On The Amount Of Ram A User Can Utilize?

Jul 24, 2009

I have a few multi-user servers in an academic laboratory. I am having a problem with some users maxing out the available RAM, causing such sever slowdowns the machine essentially crashes. My servers are Dell Power Edge's running Ubuntu 8.10 Server Edition (Not my choice). I would like to set a maximum limit on the amount of ram a user can utilize. This morning I experimented with setting limits via /etc/security/limits.conf and using ulimit. Neither of them prevented my test program, a simple infinite loop of mallocs, from crashing the server.

View 7 Replies View Related

Programming :: Shared Memory IPC Variations ?

Apr 19, 2010

I have 2 applications that send and receive messages through shared memory IPC. When I run the app ..it works but the number of messages per sec keeps changing drastically sometimes it is 400-500 per sec..then 800 then 1200 then 2000. is this normal with SHM IPC or could it be a code related issue.

View 9 Replies View Related

Hardware :: Shared Memory Is Only Using 4 Gigs Of Ram?

Feb 4, 2011

how come shared memory is only using 4 gigs of ram?

Code:

localhost router # free -m
total used free shared buffers cached
Mem: 8001 858 7142 0 130 235
-/+ buffers/cache: 492 7508

[code]...

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved