6433c103 | 28-Aug-2019 |
Xiaodong Liu <xiaodong.liu@intel.com> |
blobfs: add blobfs_create RPC as mkfs
Following test/blobfs/mkfs case, add it as one RPC method to let build a new blobfs on given block device.
Change-Id: I0ffbb1add95dfbc8655e0238ed6f3cd519dd945b
blobfs: add blobfs_create RPC as mkfs
Following test/blobfs/mkfs case, add it as one RPC method to let build a new blobfs on given block device.
Change-Id: I0ffbb1add95dfbc8655e0238ed6f3cd519dd945b Signed-off-by: Xiaodong Liu <xiaodong.liu@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/466485 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
show more ...
|
cdd089a8 | 24-May-2019 |
Jim Harris <james.r.harris@intel.com> |
blobfs: don't flush a partial buffer with no sync pending
We flush a cache buffer once it's filled. When the write for that cache buffer has completed, we look to see if there's more data to flush.
blobfs: don't flush a partial buffer with no sync pending
We flush a cache buffer once it's filled. When the write for that cache buffer has completed, we look to see if there's more data to flush. Currently if there's *any* more data to flush, we will flush it, even if it's not a full buffer.
That can hurt performance though. Ideally we only want to flush a partial buffer if there's been an explicit sync operation that requires that partial buffer to be flushed. Otherwise we will end up writing the partial buffer to disk, and then come back and write that data again later when the buffer is full.
Add a new unit test to test for this condition. This patch breaks one of the existing unit tests which was designed specifically around a RocksDB failure condition. Change that file_length unit test to now write exactly one CACHE_BUFFER, which still tests the general logic making sure that we don't confuse the amount of data flushed with the value written to the file's length xattr.
Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I83795fb45afe854b38648d0e0c1a7928219307a2
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/455698 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Ziye Yang <ziye.yang@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
show more ...
|
98ef63aa | 21-May-2019 |
Changpeng Liu <changpeng.liu@intel.com> |
UT/blobfs: add rename UT to blobfs_sync_ut
Change-Id: I17c34a02cbffce4078ef82cfc191394a7440ba52 Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk
UT/blobfs: add rename UT to blobfs_sync_ut
Change-Id: I17c34a02cbffce4078ef82cfc191394a7440ba52 Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/455151 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
show more ...
|
e9d400d5 | 28-Mar-2019 |
Ben Walker <benjamin.walker@intel.com> |
blobfs: Change channel type for synchronous operations
In the next step, this won't be a channel at all.
Change-Id: Ia8fe4da5b0b283e8dfc5c6477b84cfdd346d89a0 Signed-off-by: Ben Walker <benjamin.wal
blobfs: Change channel type for synchronous operations
In the next step, this won't be a channel at all.
Change-Id: Ia8fe4da5b0b283e8dfc5c6477b84cfdd346d89a0 Signed-off-by: Ben Walker <benjamin.walker@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/449464 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
show more ...
|
9cba82b9 | 15-Jan-2019 |
Ben Walker <benjamin.walker@intel.com> |
thread: Rename spdk_free_thread to spdk_thread_exit
This name more closely resembles pthread_exit, which is a closer analogy to how the new threading library works.
Change-Id: I68b04509f3ff8e94b868
thread: Rename spdk_free_thread to spdk_thread_exit
This name more closely resembles pthread_exit, which is a closer analogy to how the new threading library works.
Change-Id: I68b04509f3ff8e94b8688804a7e5661155a3ecd1 Signed-off-by: Ben Walker <benjamin.walker@intel.com> Reviewed-on: https://review.gerrithub.io/c/440597 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
show more ...
|
b1c79d72 | 15-Jan-2019 |
Ben Walker <benjamin.walker@intel.com> |
thread: Rename spdk_allocate_thread to spdk_thread_create
This mirrors pthread_create, which works more closely to the new style where SPDK libraries can spawn their own threads.
Change-Id: Ic524c4
thread: Rename spdk_allocate_thread to spdk_thread_create
This mirrors pthread_create, which works more closely to the new style where SPDK libraries can spawn their own threads.
Change-Id: Ic524c4c35bcf7c1611e4f261ebb64b98ac5a5a1b Signed-off-by: Ben Walker <benjamin.walker@intel.com> Reviewed-on: https://review.gerrithub.io/c/440596 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
show more ...
|
1068e22d | 15-Jan-2019 |
Ben Walker <benjamin.walker@intel.com> |
thread: spdk_free_thread now takes a thread parameter
Instead of implicitly grabbing the thread from the thread local variable, make it explicit.
Change-Id: I733fad06181439e12b1e71a4829b84e7b64e246
thread: spdk_free_thread now takes a thread parameter
Instead of implicitly grabbing the thread from the thread local variable, make it explicit.
Change-Id: I733fad06181439e12b1e71a4829b84e7b64e2468 Signed-off-by: Ben Walker <benjamin.walker@intel.com> Reviewed-on: https://review.gerrithub.io/c/440595 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
show more ...
|