Michal Mielewczyk
083d6fe93e
Clean-up 'remove-core' command
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2021-04-09 19:57:07 +02:00
Robert Baldyga
1cec062f67
Merge pull request #752 from Ostrokrzew/special_devs
...
Allow to add special deviced as cores to the cache
2021-04-09 07:33:14 +02:00
Slawomir Jankowski
6ea3dcbd65
Allow to add special deviced as cores to the cache
...
Add below devices to whitelist:
* CAS device partitions - fix,
* RAM devices - new,
* null block devices - new.
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-04-08 21:59:33 +02:00
Robert Baldyga
b7daa67a71
Merge pull request #767 from lausaa/master
...
python3.6+ is needed for casctl
2021-04-08 14:36:33 +02:00
Robert Baldyga
69cc431e5b
Merge pull request #789 from mmkayPL/set-bio-data-fix
...
Fix _blockdev_set_bio_data iteration
2021-04-08 14:35:51 +02:00
Kozlowski Mateusz
a45f0c854f
Fix _blockdev_set_bio_data iteration
...
The data->size field can be initialized to a lower value than bio->bi_vcnt,
if the bio is split. The bio_for_each_segment then iterates based on the original
indexes and the mismatch eventually causes a BUG_ON.
Fixes #714
Signed-off-by: Kozlowski Mateusz <mateusz.kozlowski@intel.com>
2021-04-08 12:28:35 +02:00
Robert Baldyga
301854ae39
Merge pull request #786 from robertbaldyga/update-ocf-20210406
...
Update OCF: Fix io put
2021-04-06 15:37:07 +02:00
Robert Baldyga
3f348cf5d8
Merge pull request #787 from arutk/probe3
...
Check dirty status in case of metadata mismatch
2021-04-06 15:14:17 +02:00
Adam Rutkowski
048f25379b
Check dirty status in case of metadata mismatch
...
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2021-04-06 15:37:44 -05:00
Robert Baldyga
da4f06cefc
Update OCF: Fix io put
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-04-06 14:23:04 +02:00
Adam Rutkowski
f6c1438dee
Merge pull request #783 from arutk/ocf_020421
...
OCF update
2021-04-02 10:35:15 +02:00
Adam Rutkowski
b256b9a985
OCF update
...
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2021-04-02 11:24:25 -05:00
Robert Baldyga
4d6ecfbb02
Merge pull request #782 from arutk/ocf_010421_2
...
OCF update
2021-04-01 17:31:35 +02:00
Adam Rutkowski
77a3c1f56d
OCF update
...
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2021-04-01 18:18:54 -05:00
Robert Baldyga
41e74eb36a
Merge pull request #780 from arutk/ocf_010421
...
OCF update
2021-04-01 14:50:53 +02:00
Adam Rutkowski
2619e691e5
OCF update
...
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2021-04-01 15:22:31 -05:00
Michał Mielewczyk
7a3b248c35
Merge pull request #764 from mmkayPL/false_stats
...
Change method for calculating 'dirty_for' statistic
2021-03-31 12:23:53 +02:00
Michał Mielewczyk
b1fe770aa0
Merge pull request #777 from arutk/ocf_310321
...
OCF update
2021-03-31 12:16:53 +02:00
Adam Rutkowski
d3a16d82d8
OCF update
...
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2021-03-31 12:32:49 -05:00
Robert Baldyga
f77e5a9b49
Merge pull request #768 from mmkayPL/fix-core-size-calculation
...
Change core size gb calculation to use 64bit parameter
2021-03-30 09:47:29 +02:00
Robert Baldyga
5176ac3359
Merge pull request #771 from robertbaldyga/fix-casadm-long-path-printing
...
casadm: Fix printing long device paths
2021-03-30 09:28:18 +02:00
Robert Baldyga
8306de7b99
casadm: Fix printing long device paths
...
Don't break line when first word in column is too long to fit into the
screen.
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-03-29 18:35:25 +02:00
Kozlowski Mateusz
32b3c98527
Change core size gb calculation to use 64bit parameter
...
Fixes #766
Signed-off-by: Kozlowski Mateusz <mateusz.kozlowski@intel.com>
2021-03-29 13:27:47 +02:00
Sha Fanghao
b533e2cbf9
opencas.py uses the f-string feature of python3.6+.
...
Signed-off-by: Sha Fanghao <shafanghao@gmail.com>
2021-03-29 18:17:11 +08:00
Kozlowski Mateusz
ab0a7e0a44
Add detection of ktime_get_real_ts64 vs getnstimeofday
...
Signed-off-by: Kozlowski Mateusz <mateusz.kozlowski@intel.com>
2021-03-26 13:46:09 +01:00
Slawomir Jankowski
584ef99143
Change time parameter type in printing
...
Type of `dirty_for` in structs needs to be unified.
Values stored in these fields (both in cache and core info structs)
are unsigned 64-bits ints but `dirty_for`s were unsigned 32-bits ints
(vide changes in OCF).
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2021-03-26 13:46:09 +01:00
Slawomir Jankowski
eef4e49904
Use time since epoch instead of jiffies
...
If time is counted in jiffies, machine reboot brokes `dirty for`
statistic for caches loaded at boot. The counter overflows and
`dirty for` shows some huge values.
Cast ticks to unsigned long.
Add necessary header.
Move `env_msleep` to `TIME` subgroup of header.
Move `env_time_after` below time converting functions.
Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
2021-03-26 13:46:09 +01:00
Michał Mielewczyk
6c4bf5a9ba
Merge pull request #763 from arutk/ocf_260321_2
...
OCF update
2021-03-26 12:35:46 +01:00
Adam Rutkowski
31bf12f96d
OCF update
...
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2021-03-26 12:23:23 +01:00
Michał Mielewczyk
a7553fecee
Merge pull request #744 from mmkayPL/cacheline-alignment
...
Cacheline alignment
2021-03-26 12:02:45 +01:00
Robert Baldyga
a5fee7c3eb
Merge pull request #753 from robertbaldyga/test-seq-cutoff-promo-fix
...
Add sequential cutoff promotion count to test API
2021-03-23 17:56:10 +01:00
Robert Baldyga
3741f38a5f
Merge pull request #759 from mmkayPL/seq-cutoff-ocf-lock-update
...
Update ocf (bugfixes)
2021-03-23 15:01:39 +01:00
Kozlowski Mateusz
e10b87d3b7
Update ocf (bugfixes)
...
Fixes #757
Fixes #758
Signed-off-by: Kozlowski Mateusz <mateusz.kozlowski@intel.com>
2021-03-23 14:03:58 +01:00
Robert Baldyga
d220aad77b
test: Extend seq cutoff test to validate promotion count
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-03-23 07:55:46 +01:00
Robert Baldyga
ff4dca4622
Add sequential cutoff promotion count to test API
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-03-23 07:55:46 +01:00
Kozlowski Mateusz
74ca3daa37
Classifier alignment
...
Move lock to a different cacheline to avoid trashing
Signed-off-by: Kozlowski Mateusz <mateusz.kozlowski@intel.com>
2021-03-22 08:26:55 +01:00
Kozlowski Mateusz
da9a6204d3
General structure packing
...
Pack often used structures, so that less memory/cachelines are used
Signed-off-by: Kozlowski Mateusz <mateusz.kozlowski@intel.com>
2021-03-22 08:26:55 +01:00
Kozlowski Mateusz
c751974ae0
Allocator structures cacheline alignment
...
Align atomic fields to a different cacheline, so no false sharing between
CPUs occur.
Signed-off-by: Kozlowski Mateusz <mateusz.kozlowski@intel.com>
2021-03-22 08:26:55 +01:00
Robert Baldyga
94dc9048c7
Merge pull request #743 from robertbaldyga/makefile-fix-uninstall
...
Fix Makefile error handling
2021-03-19 18:43:57 +01:00
Robert Baldyga
880cfadde9
Makefile: improve uninstall error handling
...
Introduce helper functions to handle uninstall errors gracefully.
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-03-19 15:37:55 +01:00
Robert Baldyga
e58dae02ac
Move build system tools to separate directory
...
Separate tools used internally by build system from utilities that are
part of Open CAS installation package.
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-03-19 15:37:55 +01:00
Robert Baldyga
feaafdfe06
Makefile: Little cleanup
...
Move files to components they belong to.
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-03-19 15:27:03 +01:00
Robert Baldyga
e9b344cc1e
Merge pull request #741 from robertbaldyga/update-ocf-20210319
...
Update OCF
2021-03-19 12:31:53 +01:00
Robert Baldyga
6824eaf5ea
Update OCF
...
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2021-03-19 11:59:09 +01:00
Robert Baldyga
6f71c47e56
Merge pull request #739 from arutk/ocf_190321
...
OCF update
2021-03-19 09:36:01 +01:00
Adam Rutkowski
abfcd02a96
OCF update
...
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2021-03-19 10:46:04 -05:00
Michał Mielewczyk
f4abf77f6b
Merge pull request #737 from arutk/ocf_170321
...
OCF update (mostly bugfix)
2021-03-17 12:02:26 +01:00
Adam Rutkowski
97d916b077
OCF update (mostly bugfix)
...
Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
2021-03-17 13:48:54 -05:00
Robert Baldyga
4a0fba8e79
Merge pull request #727 from mmichal10/seq-cutoff-consts
...
Seq cutoff consts
2021-03-16 17:11:58 +01:00
Michal Mielewczyk
5e035f4b52
casadm: improve error logging
...
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
2021-03-12 14:12:02 +01:00