Re: [PATCH] fix memory allocation in the cases we may need to align

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

 



On Wed, Apr 24 2013, peter chang wrote:
> when using the sg backend we crash w/ a SEGV in fio_sgio_getevents()
> because of memory corruption from the IO. when we allocate the td's
> backing store there's a possible post-allocation adjustment to page
> align the buffers. however, the extra memory that this alignment may
> need is not taken into account when allocating the buffer.
> 
> Tested:
>   - the problematic fio file looks like
>   fdha347:~# cat foo.fio
>   [global]
>   bs=64k
>   thread
>   rw=read
>   size=100g
>   time_based=1
>   runtime=60
>   iodepth=1
> 
>   [sdc]
>   ioengine=sg
>   filename=/dev/sg2
>   numjobs=1

Thanks, good description and the potential extra alignment bytes isn't
an issue. Applied!

-- 
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