Robert Baldyga
af6d3e9d06
Merge pull request #368 from arutk/rpool_debug
...
Runtime checks for allocator rpool consistency
2020-03-25 15:09:20 +01:00
Robert Baldyga
5b37183e41
Merge pull request #344 from rafalste/add_package_generator
...
Add package generator script
2020-03-25 12:40:29 +01:00
Robert Baldyga
e10e93533f
Merge pull request #353 from rafalste/bidirectional_rsync
...
Update rsync usage to utilize bidirectional rsync
2020-03-24 18:23:28 +01:00
Rafal Stefanowski
d5e632d3a3
Update rsync usage to utilize bidirectional rsync
...
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-03-24 15:38:54 +01:00
Adam Rutkowski
d822a1d12e
Runtime checks for allocator rpool consistency
...
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2020-03-24 01:58:11 +01:00
Robert Baldyga
ef94a0df22
Merge pull request #362 from mmichal10/fix-core-removing
...
Fix core removing
2020-03-23 14:41:17 +01:00
Robert Baldyga
bf4256eb27
Merge pull request #364 from micrakow/ocf_udpate
...
OCF update
2020-03-23 14:28:57 +01:00
Michal Rakowski
eef7cf97ce
OCF update
...
Signed-off-by: Michal Rakowski <michal.rakowski@intel.com>
2020-03-23 13:16:32 +01:00
Robert Baldyga
8b1254dfea
Merge pull request #355 from mmichal10/async-stop-compl
...
Async stop compl
2020-03-23 13:00:50 +01:00
Michal Mielewczyk
9e692435f6
Allocate stop context on during start
...
To make cache stop as simple as possibe and to reduce number of errors, stop
context should be allocated during cache initialize.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-03-23 03:28:26 -04:00
Michal Mielewczyk
f93019165f
Hold reference to module for each thread
...
To prevent removing cas_cache module when not all thread were stopped yet, each
of them should keep reference.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-03-20 11:17:00 -04:00
Michal Mielewczyk
55d53867cc
Complete cache stop from kthread
...
To enable stopping management queue from completion context, last queue_put()
have to be called from separate thread.
After cache is fully deinitialized, thread calls module_put_and_exit() to
prevent scenario when code is still executed, but there are no references to
module.
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-03-20 11:17:00 -04:00
Michal Mielewczyk
91c8c02860
Simplify functions managing core ids
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-03-20 10:39:17 -04:00
Michal Mielewczyk
5ca9287b53
Refactor core removing function
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-03-20 10:39:17 -04:00
Rafal Stefanowski
7335b321ea
Add package generator script
...
- add a 'pckgen' script to generate various OpenCAS packages like
release archives (tar, zip), RPMs (source and binary) as well as to
create version file with metadata
- add a SPEC file for RPM creation
- add Makefile targets to use 'pckgen' script through 'make <package>'
'pckgen' script has a bunch of features for package generation.
Read './pckgen --help' for more information on usage scenarios.
Script is also prepared to easily add new packages creation in the future.
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-03-20 03:16:56 +01:00
Robert Baldyga
68533834dd
Merge pull request #361 from Ostrokrzew/update
...
Casadm man extend
2020-03-19 19:47:59 +01:00
Robert Baldyga
32fe754b08
Merge pull request #356 from mmichal10/rename-MU-thread
...
Fix metadata updater thread prefix
2020-03-19 13:23:18 +01:00
Slawomir Jankowski
5d74062599
Casadm man extend
...
Add description of OpenCAS exported objects' naming template
Update date in mans.
closes #359
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-03-19 13:05:18 +01:00
Robert Baldyga
8b5d187555
Merge pull request #357 from imjfckm/memory-checks
...
Update OCF to include pp memory check and updated cache memory check
2020-03-18 14:20:00 +01:00
Jan Musial
a3f2ed7c86
Update OCF to include pp memory check and updated cache memory check
...
Signed-off-by: Jan Musial <jan.musial@intel.com>
2020-03-18 10:32:53 +01:00
Michal Mielewczyk
2ef9090d87
Fix metadata updater thread prefix
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-03-17 18:04:49 -04:00
Robert Baldyga
5d99f0c092
Merge pull request #354 from Deixx/casctl-stop-exit
...
Return exit codes from casctl stop
2020-03-17 17:38:56 +01:00
Daniel Madej
55bdad7054
Return exit codes from casctl stop
...
Signed-off-by: Daniel Madej <daniel.madej@intel.com>
2020-03-17 11:55:51 +01:00
Robert Baldyga
9f6d407d10
Merge pull request #349 from imjfckm/alru-noidle-test
...
Allow activity threshold and wake up time in ALRU set to 0s
2020-03-13 17:19:13 +01:00
Jan Musial
650dbf5d31
Add test for ALRU with activity threshold set to 0
...
Signed-off-by: Jan Musial <jan.musial@intel.com>
2020-03-11 11:27:48 +01:00
Jan Musial
8d86cdfa3b
Allow whole range of ALRU parameters in test API
...
Signed-off-by: Jan Musial <jan.musial@intel.com>
2020-03-11 11:27:48 +01:00
Jan Musial
1b0c0f6380
Update test framework
...
Signed-off-by: Jan Musial <jan.musial@intel.com>
2020-03-11 11:27:48 +01:00
Jan Musial
1588deafd5
Update OCF
...
Signed-off-by: Jan Musial <jan.musial@intel.com>
2020-03-11 11:27:48 +01:00
Robert Baldyga
09c585bbcd
Merge pull request #350 from mmichal10/dont-stop-notexisting-thread
...
Don't try to stop non running thread
2020-03-10 17:58:34 +01:00
Robert Baldyga
3d42ba1c1d
Merge pull request #348 from mmichal10/missing-put-module
...
Add missing module_put() in casse of alloc error
2020-03-10 09:21:52 +01:00
Michal Mielewczyk
917577480f
Remove running
field from cas thread info
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-03-07 16:10:36 -05:00
Michal Mielewczyk
e39eecab49
Don't try to stop non running thread
...
If _cas_create_thread() thread failed, queue should be stopped by ocf. One of steps
done during queue stop is stopping kernel thread.
To avoid stopping thread which is not running, additional check was added in
_cas_stop_thread().
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-03-07 15:22:30 -05:00
Michal Mielewczyk
3eab28cf44
Add missing module_put() in casse of alloc error
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-03-07 08:47:24 -05:00
Jan Musiał
c19249a471
Merge pull request #341 from imjfckm/move-cls-init-after-attach
...
Move classifier init after cache device attach completion
2020-02-27 08:56:32 +01:00
Jan Musial
19c334c4cf
Move classifier init after cache device attach completion
...
Right now the classifier is instantiated before device is attached.
This way if we have any IO-classes present on cache device the
classifier will have no knowledge of them and fail to classify IO
correctly.
After moving the classifier init to cache finalization routine we have
all the information needed to initialize properly both in new instance
start path and in load path.
Signed-off-by: Jan Musial <jan.musial@intel.com>
2020-02-25 14:00:07 +01:00
Michal Rakowski
dfab893c3d
Merge pull request #319 from rafalste/tests_display_stats
...
Add tests for proper statistics display
2020-02-18 12:47:49 +01:00
Michał Mielewczyk
6e1224191f
Merge pull request #260 from Ostrokrzew/many2one
...
Add FI many to one tests
2020-02-18 09:00:05 +01:00
Katarzyna Łapińska
da493b37bb
Merge pull request #331 from Ostrokrzew/load_init_odlozony
...
Load cache tests' update
2020-02-18 07:42:57 +01:00
Katarzyna Łapińska
49edc8a8cd
Merge pull request #315 from Ostrokrzew/interrupt
...
Interruption tests
2020-02-18 07:24:43 +01:00
Rafal Stefanowski
d9a2b017c8
Add tests for proper statistics display
...
Signed-off-by: Rafal Stefanowski <rafal.stefanowski@intel.com>
2020-02-17 17:53:09 +01:00
Slawomir Jankowski
17528aefdd
Add interrupt cache stop interrupt test
...
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-17 15:36:31 +01:00
Slawomir Jankowski
657023a79c
Add two tests for interrupting cache mode switch
...
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-17 15:36:31 +01:00
Slawomir Jankowski
5f21f4d580
Add interrupt removing core test
...
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-17 15:36:31 +01:00
Slawomir Jankowski
90c27e488c
Add Interrupt cache flushing test
...
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-17 15:36:31 +01:00
Slawomir Jankowski
660a99ae5c
Add Interrupt core flushing test
...
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-17 15:36:31 +01:00
Michał Mielewczyk
ee9855cad3
Merge pull request #335 from Ostrokrzew/multi
...
Remove core from multilevel cache test
2020-02-17 15:22:57 +01:00
Katarzyna Łapińska
dcbdb820fb
Merge pull request #325 from mmichal10/flush-params-test
...
Flush params test
2020-02-17 14:20:47 +01:00
Michal Mielewczyk
b28e2614c0
Test for acp wake up time param.
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-02-17 07:28:04 -05:00
Michal Mielewczyk
230667a219
Test for acp flush max buffers param.
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2020-02-17 03:52:17 -05:00
Slawomir Jankowski
8c7f0dcd32
One of many cores in cache fails
...
OpenCAS continue to work after one of many cores fails
1. Start cache.
2. Add core1 to previously created cache.
3. Add core2 to previously created cache.
4. Fill cache with pages from core1.
5. Fail core1.
6. Check if core2 is able to use cache.
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2020-02-17 09:44:55 +01:00