Re: fio 2.0.9 fails: shmget: No space left on device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/21/2012 03:02 PM, Konstantin Boyandin wrote:
> Hello Jens,
> 
> On 09/21/2012 07:37 PM, Jens Axboe wrote:
>> On 09/21/2012 02:34 PM, Konstantin Boyandin wrote:
>>> Hello Jens,
>>>
>>> On 09/21/2012 07:15 PM, Jens Axboe wrote:
>>>> On 09/21/2012 01:51 PM, Konstantin Boyandin wrote:
>>>>> Hello,
>>>>>
>>>>> When trying to run the command line
>>>>>
>>>>> fio --bs=4k --size=128m --direct=1 --runtime=10 --rw=randread
>>>>> --numjobs=32 --group_reporting --time_based --name=128m
>>>>>
>>>>> I see only this:
>>>>>
>>>>> shmget: No space left on device
>>>>> error: failed to setup shm segment
>>>>
>>>> Hmmm. Can you send me the output of:
>>>>
>>>> $ grep . /proc/sys/kernel/shm*
>>>
>>> /proc/sys/kernel/shmall:2097152
>>> /proc/sys/kernel/shmmax:33554432
>>> /proc/sys/kernel/shmmni:4096
>>> /proc/sys/kernel/shm_rmid_forced:0
>>>
>>>> $ ipcs -l
>>>
>>> ------ Shared Memory Limits --------
>>> max number of segments = 4096
>>> max seg size (kbytes) = 32768
>>> max total shared memory (kbytes) = 8388608
>>> min seg size (bytes) = 1
>>>
>>> ------ Semaphore Limits --------
>>> max number of arrays = 128
>>> max semaphores per array = 250
>>> max semaphores system wide = 32000
>>> max ops per semop call = 32
>>> semaphore max value = 32767
>>>
>>> ------ Messages: Limits --------
>>> max queues system wide = 6365
>>> max size of message (bytes) = 8192
>>> default max size of queue (bytes) = 16384
>>>
>>>> $ ipcs -m
>>>
>>> ------ Shared Memory Segments --------
>>> key        shmid      owner      perms      bytes      nattch     status
>>>
>>> The VM wasn't restarted after the fio failed run.
>>>
>>> fio was run by root user.
>>
>> Oh, try with this please.
>>
>> diff --git a/init.c b/init.c
>> index da1f472..b3215f5 100644
>> --- a/init.c
>> +++ b/init.c
>> @@ -254,7 +254,7 @@ static int setup_thread_area(void)
>>  		shm_id = shmget(0, size, IPC_CREAT | 0600);
>>  		if (shm_id != -1)
>>  			break;
>> -		if (errno != EINVAL && errno != ENOMEM) {
>> +		if (errno != EINVAL && errno != ENOMEM && errno != ENOSPC) {
>>  			perror("shmget");
>>  			break;
>>  		}
> 
> The patch worked fine, thank you!
> fio works now as expected.

Excellent. Thanks for the report, fix has been committed.

-- 
Jens Axboe

--
To unsubscribe from this list: send the line "unsubscribe fio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux