[RFC v4+ hot_track 13/19] debugfs: introduce one function

2012-10-28 Thread zwu . kernel
eal error or not. We don't -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[RFC v4+ hot_track 19/19] vfs: add documentation

2012-10-28 Thread zwu . kernel
test devid 1 transid 29 /dev/sdb +[ 1505.952977] btrfs: disk space caching is enabled +[ 1506.069678] vfs: turning on hot data tracking + +2.) Mount debugfs at first: + +$ mount -t debugfs none /sys/kernel/debug +$ ls -l /sys/kernel/debug/hot_track/ +total 0 +drwxr-xr-x 2 root root 0 Aug 8 04:40 sdb +$

[RFC v4+ hot_track 11/19] vfs: register one shrinker

2012-10-28 Thread zwu . kernel
queue_struct *update_wq; struct delayed_work update_work; struct hot_func_type *hot_func_type; + struct shrinker hot_shrink; }; extern void __init hot_cache_init(void); -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

[RFC v4+ hot_track 15/19] sysfs: add two hot_track proc files

2012-10-28 Thread zwu . kernel
- include/linux/hot_tracking.h |7 +++ kernel/sysctl.c | 14 ++ 4 files changed, 30 insertions(+), 12 deletions(-) diff --git a/fs/hot_tracking.c b/fs/hot_tracking.c index 376d7fb..02ac4a2 100644 --- a/fs/hot_tracking.c +++ b/fs/hot_tracking.c @@ -28,6 +28,12

[RFC v4+ hot_track 17/19] xfs: add hot tracking support

2012-10-28 Thread zwu . kernel
+ error = hot_track_init(sb); + if (error) + goto out_free_root; + } + return 0; + out_free_root: + dput(sb->s_root); + sb->s_root = NULL; out_syncd_stop: xfs_syncd_stop(mp); out_filestream_unmount: -- 1.7.6.5 -- To unsubsc

[RFC v4+ hot_track 14/19] vfs: add debugfs support

2012-10-28 Thread zwu . kernel
From: Zhi Yong Wu Add a /sys/kernel/debug/hot_track// directory for each volume that contains two files. The first, `inode_stats', contains the heat information for inodes that have been brought into the hot data map structures. The second, `range_stats', contains similar information

[RFC v4+ hot_track 09/19] vfs: add one work queue

2012-10-28 Thread zwu . kernel
workqueue_struct *update_wq; + struct delayed_work update_work; }; extern void __init hot_cache_init(void); -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[RFC v4+ hot_track 08/19] vfs: add aging function

2012-10-28 Thread zwu . kernel
ME_TO_KICK 300 + /* NRR/NRW heat unit = 2^X accesses */ #define NRR_MULTIPLIER_POWER 20 /* NRR - number of reads since mount */ #define NRR_COEFF_POWER 0 -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kern

[RFC v4+ hot_track 05/19] vfs: add hooks to enable hot tracking

2012-10-28 Thread zwu . kernel
(u64)nr_pages * PAGE_CACHE_SIZE, 0); + return ret; } -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[RFC v4+ hot_track 01/19] vfs: introduce private radix tree structures

2012-10-28 Thread zwu . kernel
_inode_tree; + spinlock_t lock; /*protect inode tree */ +}; + +extern void __init hot_cache_init(void); + +#endif /* _LINUX_HOTTRACK_H */ -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH v1 hot_track 02/18] vfs: add init and cleanup functions

2012-11-08 Thread zwu . kernel
init(void); +extern int hot_track_init(struct super_block *sb); +extern void hot_track_exit(struct super_block *sb); +extern void hot_inode_item_put(struct hot_inode_item *he); #endif /* _LINUX_HOTTRACK_H */ -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux

[PATCH v1 hot_track 03/18] vfs: add I/O frequency update function

2012-11-08 Thread zwu . kernel
ock *sb); extern void hot_track_exit(struct super_block *sb); extern void hot_inode_item_put(struct hot_inode_item *he); +extern void hot_update_freqs(struct inode *inode, loff_t start, + size_t len, int rw); +extern struct hot_inode_item *hot_inode_item_lookup(struct hot_info *root, +

[PATCH v1 hot_track 06/18] vfs: add temp calculation function

2012-11-08 Thread zwu . kernel
e map info. */ static void hot_map_init(struct hot_info *root) -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH v1 hot_track 04/18] vfs: add two map info arrays

2012-11-08 Thread zwu . kernel
lock; /*protect inode tree */ + + /* map of inode temperature */ + struct hot_map_head heat_inode_map[HEAT_MAP_SIZE]; + /* map of range temperature */ + struct hot_map_head heat_range_map[HEAT_MAP_SIZE]; + unsigned int hot_map_nr; }; extern void __init hot_cache_init(vo

[PATCH v1 hot_track 12/18] vfs: add one ioctl interface

2012-11-08 Thread zwu . kernel
+ extern void __init hot_cache_init(void); extern int hot_track_init(struct super_block *sb); extern void hot_track_exit(struct super_block *sb); -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.ke

[PATCH v1 hot_track 11/18] vfs: register one shrinker

2012-11-08 Thread zwu . kernel
_struct *update_wq; struct delayed_work update_work; struct hot_type *hot_type; + struct shrinker hot_shrink; }; extern void __init hot_cache_init(void); -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord..

[PATCH v1 hot_track 15/18] btrfs: add hot tracking support

2012-11-08 Thread zwu . kernel
seq_puts(seq, ",skip_balance"); if (btrfs_test_opt(root, PANIC_ON_FATAL_ERROR)) seq_puts(seq, ",fatal_errors=panic"); + if (btrfs_test_opt(root, HOT_TRACK)) + seq_puts(seq, ",hot_track"); return 0; } -- 1.7.6.5 -- To unsubscrib

[PATCH v1 hot_track 17/18] ext4: add hot tracking support

2012-11-08 Thread zwu . kernel
} + sbi->s_hottrack_enable = 1; } else if (token == Opt_stripe) { sbi->s_stripe = arg; } else if (m->flags & MOPT_DATAJ) { -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kerne

[PATCH v1 hot_track 00/18] vfs: hot data tracking

2012-11-08 Thread zwu . kernel
From: Zhi Yong Wu HI, guys, Any comments or ideas are appreciated, thanks. NOTE: The patchset can be obtained via my kernel dev git on github: g...@github.com:wuzhy/kernel.git hot_tracking If you're interested, you can also review them via https://github.com/wuzhy/kernel/commits

[PATCH v1 hot_track 18/18] vfs: add documentation

2012-11-08 Thread zwu . kernel
test devid 1 transid 29 /dev/sdb +[ 1505.952977] btrfs: disk space caching is enabled +[ 1506.069678] vfs: turning on hot data tracking + +2.) Mount debugfs at first: + +$ mount -t debugfs none /sys/kernel/debug +$ ls -l /sys/kernel/debug/hot_track/ +total 0 +drwxr-xr-x 2 root root 0 Aug 8 04:40 sdb +$

[PATCH v1 hot_track 16/18] xfs: add hot tracking support

2012-11-08 Thread zwu . kernel
+ error = hot_track_init(sb); + if (error) + goto out_free_root; + } + return 0; + out_free_root: + dput(sb->s_root); + sb->s_root = NULL; out_syncd_stop: xfs_syncd_stop(mp); out_filestream_unmount: -- 1.7.6.5 -- To unsubsc

[PATCH v1 hot_track 14/18] procfs: add two hot_track proc files

2012-11-08 Thread zwu . kernel
- include/linux/hot_tracking.h |7 +++ kernel/sysctl.c | 14 ++ 4 files changed, 30 insertions(+), 12 deletions(-) diff --git a/fs/hot_tracking.c b/fs/hot_tracking.c index db430e8..2e5bf6c 100644 --- a/fs/hot_tracking.c +++ b/fs/hot_tracking.c @@ -27,6 +27,12

[PATCH v1 hot_track 13/18] vfs: add debugfs support

2012-11-08 Thread zwu . kernel
From: Zhi Yong Wu Add a /sys/kernel/debug/hot_track// directory for each volume that contains two files. The first, `inode_stats', contains the heat information for inodes that have been brought into the hot data map structures. The second, `range_stats', contains similar information

[PATCH v1 hot_track 09/18] vfs: add one work queue

2012-11-08 Thread zwu . kernel
uct *update_wq; + struct delayed_work update_work; }; extern void __init hot_cache_init(void); -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH v1 hot_track 10/18] vfs: add FS hot type support

2012-11-08 Thread zwu . kernel
an hot type */ +struct hot_type { + u64 range_bits; + /* fields provided by specific FS */ + struct hot_func_ops ops; +}; + struct hot_info { struct radix_tree_root hot_inode_tree; spinlock_t lock; /*protect inode tree */ @@ -85,6 +103,7 @@ struct hot_info {

[PATCH v1 hot_track 08/18] vfs: add aging function

2012-11-08 Thread zwu . kernel
nds) + */ +#define TIME_TO_KICK 300 + /* NRR/NRW heat unit = 2^X accesses */ #define NRR_MULTIPLIER_POWER 20 /* NRR - number of reads since mount */ #define NRR_COEFF_POWER 0 -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body o

[PATCH v1 hot_track 07/18] vfs: add map info update function

2012-11-08 Thread zwu . kernel
elta between recent reads(ns) */ +#define AVR_COEFF_POWER 0 +#define AVW_DIVIDER_POWER 40 /* AVW - average delta between recent writes(ns) */ +#define AVW_COEFF_POWER 0 + #endif /* __HOT_TRACKING__ */ -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe li

[PATCH v1 hot_track 05/18] vfs: add hooks to enable hot tracking

2012-11-08 Thread zwu . kernel
E_CACHE_SIZE, 0); + return ret; } -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH v1 hot_track 01/18] vfs: introduce some data structures

2012-11-08 Thread zwu . kernel
/ +}; + +struct hot_info { + struct radix_tree_root hot_inode_tree; + spinlock_t lock; /*protect inode tree */ +}; + +extern void __init hot_cache_init(void); + +#endif /* _LINUX_HOTTRACK_H */ -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

[RFC v1 00/11] vfs: hot data tracking

2012-09-17 Thread zwu . kernel
. Usage syntax: root@debian-i386:~# mount -o hottrack /dev/sdb /mnt [ 1505.894078] device label test devid 1 transid 29 /dev/sdb [ 1505.952977] btrfs: disk space caching is enabled [ 1506.069678] vfs: turning on hot data tracking root@debian-i386:~# mount -t debugfs none /sys/kernel/debug root@deb

[RFC v1 02/11] vfs: introduce one rb tree - hot_inode_tree

2012-09-17 Thread zwu . kernel
cribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[RFC v1 03/11] vfs: introduce 2 rb tree items - inode and range

2012-09-17 Thread zwu . kernel
ts hot_freq_data, start, len, and in_tree */ + spinlock_t lock; + /* prevents kfree */ + struct kref refs; +}; + struct hot_info { /* red-black tree that keeps track of fs-wide hot data */ -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kerne

[RFC v1 04/11] vfs: add support for updating access frequency

2012-09-17 Thread zwu . kernel
_range_item +*hot_rb_lookup_hot_range_item(struct hot_range_tree *tree, + u64 start); + +struct hot_inode_item +*hot_rb_lookup_hot_inode_item(struct hot_inode_tree *tree, + unsigned long inode_num); + +void hot_rb_free_hot_inode_item(struct h

[RFC v1 05/11] vfs: add one new mount option '-o hottrack'

2012-09-17 Thread zwu . kernel
struct rb_root map; @@ -89,6 +94,7 @@ struct hot_range_item { }; struct hot_info { + unsigned long mount_opt; /* red-black tree that keeps track of fs-wide hot data */ struct hot_inode_tree hot_inode_tree; -- 1.7.6.5 -- To unsubscribe from this list: send the line &qu

[RFC v1 06/11] vfs: add init and exit support

2012-09-17 Thread zwu . kernel
hot_track_exit(sb); + dput(root); deactivate_locked_super(sb); out_free_secdata: -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[RFC v1 08/11] vfs: enable hot data tracking

2012-09-17 Thread zwu . kernel
te_freqs(mapping->host, start, + (u64)nr_pages * PAGE_CACHE_SIZE, 0); + } + return ret; } -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[RFC v1 09/11] vfs: fork one private kthread to update temperature info

2012-09-17 Thread zwu . kernel
From: Zhi Yong Wu Fork and run one kernel kthread to calculate that temperature based on some metrics kept in custom frequency data structs, and store the info in the hash table. Signed-off-by: Zhi Yong Wu --- fs/hot_hash.c | 302

[RFC v1 10/11] vfs: add 3 new ioctl interfaces

2012-09-17 Thread zwu . kernel
u32 last_temperature; }; +struct heat_info { + __u64 avg_delta_reads; + __u64 avg_delta_writes; + __u64 last_read_time; + __u64 last_write_time; + __u32 num_reads; + __u32 num_writes; + __u32 temperature; + __u8 live; + char filename[PATH_MAX

[RFC v1 11/11] vfs: add debugfs support

2012-09-17 Thread zwu . kernel
From: Zhi Yong Wu Add a /sys/kernel/debug/hot_track// directory for each volume that contains two files. The first, `inode_data', contains the heat information for inodes that have been brought into the hot data map structures. The second, `range_data', contains similar information for subfile

[RFC v1 07/11] vfs: introduce one hash table

2012-09-17 Thread zwu . kernel
ap of inode temperature */ + struct hot_hash_head heat_inode_hl[HEAT_HASH_SIZE]; + + /* hash map of range temperature */ + struct hot_hash_head heat_range_hl[HEAT_HASH_SIZE]; }; #endif /* _LINUX_HOTTRACK_H */ -- 1.7.6.5 -- To unsubscribe from this list: send the line "

[RFC v1 01/11] vfs: introduce one structure hot_info

2012-09-17 Thread zwu . kernel
_LINUX_HOTTRACK_H +#define _LINUX_HOTTRACK_H + +#include +#include +#include + +struct hot_info { +}; + +#endif /* _LINUX_HOTTRACK_H */ -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majo

[PATCH RESEND v1 00/16] vfs: hot data tracking

2012-12-20 Thread zwu . kernel
are appreciated, thanks. NOTE: The patchset can be obtained via my kernel dev git on github: git://github.com/wuzhy/kernel.git hot_tracking If you're interested, you can also review them via https://github.com/wuzhy/kernel/commits/hot_tracking For more info, please check hot_tracking.txt

[PATCH RESEND v1 01/16] vfs: introduce some data structures

2012-12-20 Thread zwu . kernel
ge_tree */ + size_t len; /* length in bytes */ +}; + +struct hot_info { + struct hot_rb_tree hot_inode_tree; + spinlock_t lock; /*protect inode tree */ +}; + +extern void __init hot_cache_init(void); + +#endif /* _LINUX_HOTTRACK_H */ -- 1.7.6.5 -- To unsubscribe from this list: send

[PATCH RESEND v1 05/16] vfs: add hooks to enable hot tracking

2012-12-20 Thread zwu . kernel
* PAGE_CACHE_SIZE, 0); + return ret; } -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH RESEND v1 02/16] vfs: add init and cleanup functions

2012-12-20 Thread zwu . kernel
t_tracking.h @@ -74,5 +74,8 @@ struct hot_info { }; extern void __init hot_cache_init(void); +extern int hot_track_init(struct super_block *sb); +extern void hot_track_exit(struct super_block *sb); +extern void hot_inode_item_put(struct hot_inode_item *he); #endif /* _LINUX_HOTTRACK_H */ --

[PATCH RESEND v1 03/16] vfs: add I/O frequency update function

2012-12-20 Thread zwu . kernel
(struct super_block *sb); extern void hot_track_exit(struct super_block *sb); extern void hot_inode_item_put(struct hot_inode_item *he); +extern void hot_update_freqs(struct inode *inode, loff_t start, + size_t len, int rw); +extern struct hot_inode_item *hot_in

[PATCH RESEND v1 11/16] vfs: register one shrinker

2012-12-20 Thread zwu . kernel
de/linux/hot_tracking.h +++ b/include/linux/hot_tracking.h @@ -110,6 +110,7 @@ struct hot_info { struct workqueue_struct *update_wq; struct delayed_work update_work; struct hot_type *hot_type; + struct shrinker hot_shrink; }; extern void __init hot_cache_init(void); -

[PATCH RESEND v1 15/16] btrfs: add hot tracking support

2012-12-20 Thread zwu . kernel
seq_puts(seq, ",skip_balance"); if (btrfs_test_opt(root, PANIC_ON_FATAL_ERROR)) seq_puts(seq, ",fatal_errors=panic"); + if (btrfs_test_opt(root, HOT_TRACK)) + seq_puts(seq, ",hot_track"); return 0; } -- 1.7.6.5 -- To unsubscrib

[PATCH RESEND v1 12/16] vfs: add one ioctl interface

2012-12-20 Thread zwu . kernel
+ extern void __init hot_cache_init(void); extern int hot_track_init(struct super_block *sb); extern void hot_track_exit(struct super_block *sb); -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.ke

[PATCH RESEND v1 07/16] vfs: add map info update function

2012-12-20 Thread zwu . kernel
_bucket->node_list); + root->hot_map_nr++; + freq_data->last_temp = temp; + } + spin_unlock(>hot_range.lock); + } +} + +/* * Initialize inode and range map info. */ static void hot_map_init(struct hot_info *root) --

[PATCH RESEND v1 06/16] vfs: add temp calculation function

2012-12-20 Thread zwu . kernel
from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH RESEND v1 16/16] vfs: add documentation

2012-12-20 Thread zwu . kernel
test devid 1 transid 29 /dev/sdb +[ 1505.952977] btrfs: disk space caching is enabled +[ 1506.069678] vfs: turning on hot data tracking + +2.) Mount debugfs at first: + +$ mount -t debugfs none /sys/kernel/debug +$ ls -l /sys/kernel/debug/hot_track/ +total 0 +drwxr-xr-x 2 root root 0 Aug 8 04:40 sdb +$

[PATCH RESEND v1 14/16] proc: add two hot_track proc files

2012-12-20 Thread zwu . kernel
- include/linux/hot_tracking.h |7 +++ kernel/sysctl.c | 14 ++ 4 files changed, 30 insertions(+), 12 deletions(-) diff --git a/fs/hot_tracking.c b/fs/hot_tracking.c index 94fe029..74d01da 100644 --- a/fs/hot_tracking.c +++ b/fs/hot_tracking.c @@ -27,6 +27,12

[PATCH RESEND v1 13/16] vfs: add debugfs support

2012-12-20 Thread zwu . kernel
From: Zhi Yong Wu Add a /sys/kernel/debug/hot_track// directory for each volume that contains two files. The first, `inode_stats', contains the heat information for inodes that have been brought into the hot data map structures. The second, `range_stats', contains similar information

[PATCH RESEND v1 09/16] vfs: add one work queue

2012-12-20 Thread zwu . kernel
e_map[HEAT_MAP_SIZE]; unsigned int hot_map_nr; + + struct workqueue_struct *update_wq; + struct delayed_work update_work; }; extern void __init hot_cache_init(void); -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

[PATCH RESEND v1 10/16] vfs: add FS hot type support

2012-12-20 Thread zwu . kernel
ided by specific FS */ + struct hot_func_ops ops; +}; + struct hot_info { struct hot_rb_tree hot_inode_tree; spinlock_t lock; /*protect inode tree */ @@ -91,6 +109,7 @@ struct hot_info { struct workqueue_struct *update_wq; struct delayed_work update_work;

[PATCH RESEND v1 08/16] vfs: add aging function

2012-12-20 Thread zwu . kernel
= 2^X accesses */ #define NRR_MULTIPLIER_POWER 20 /* NRR - number of reads since mount */ #define NRR_COEFF_POWER 0 -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger

[PATCH RESEND v1 04/16] vfs: add two map arrays

2012-12-20 Thread zwu . kernel
nlock_t lock; /*protect inode tree */ + + /* map of inode temperature */ + struct hot_map_head heat_inode_map[HEAT_MAP_SIZE]; + /* map of range temperature */ + struct hot_map_head heat_range_map[HEAT_MAP_SIZE]; + unsigned int hot_map_nr; }; extern void __init hot_cache

[PATCH] ip: add the type 'vxlan' in the output of "ip link help"

2012-12-15 Thread zwu . kernel
| ipoib | ip6tnl | ipip | sit }\n"); + fprintf(stderr, " bridge | ipoib | ip6tnl | ipip | sit | vxlan }\n"); } exit(-1); } -- 1.7.2.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body o

[PATCH v1 resend hot_track 00/16] vfs: hot data tracking

2012-11-16 Thread zwu . kernel
From: Zhi Yong Wu HI, guys, Any comments or ideas are appreciated, thanks. NOTE: The patchset can be obtained via my kernel dev git on github: git://github.com/wuzhy/kernel.git hot_tracking If you're interested, you can also review them via https://github.com/wuzhy/kernel/commits

[PATCH v1 hot_track 02/16] vfs: add init and cleanup functions

2012-11-16 Thread zwu . kernel
che_init(void); +extern int hot_track_init(struct super_block *sb); +extern void hot_track_exit(struct super_block *sb); +extern void hot_inode_item_put(struct hot_inode_item *he); #endif /* _LINUX_HOTTRACK_H */ -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-k

[PATCH v1 hot_track 03/16] vfs: add I/O frequency update function

2012-11-16 Thread zwu . kernel
(struct super_block *sb); extern void hot_track_exit(struct super_block *sb); extern void hot_inode_item_put(struct hot_inode_item *he); +extern void hot_update_freqs(struct inode *inode, loff_t start, + size_t len, int rw); +extern struct hot_inode_item *hot_in

[PATCH v1 hot_track 05/16] vfs: add hooks to enable hot tracking

2012-11-16 Thread zwu . kernel
* PAGE_CACHE_SIZE, 0); + return ret; } -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH v1 hot_track 06/16] vfs: add temp calculation function

2012-11-16 Thread zwu . kernel
from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH v1 hot_track 09/16] vfs: add one work queue

2012-11-16 Thread zwu . kernel
{ /* map of range temperature */ struct hot_map_head heat_range_map[HEAT_MAP_SIZE]; unsigned int hot_map_nr; + + struct workqueue_struct *update_wq; + struct delayed_work update_work; }; extern void __init hot_cache_init(void); -- 1.7.6.5 -- To unsubscribe

[PATCH v1 hot_track 10/16] vfs: add FS hot type support

2012-11-16 Thread zwu . kernel
ided by specific FS */ + struct hot_func_ops ops; +}; + struct hot_info { struct hot_rb_tree hot_inode_tree; spinlock_t lock; /*protect inode tree */ @@ -91,6 +109,7 @@ struct hot_info { struct workqueue_struct *update_wq; struct delayed_work update_work;

[PATCH v1 hot_track 12/16] vfs: add one ioctl interface

2012-11-16 Thread zwu . kernel
+ extern void __init hot_cache_init(void); extern int hot_track_init(struct super_block *sb); extern void hot_track_exit(struct super_block *sb); -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.ke

[PATCH v1 hot_track 15/16] btrfs: add hot tracking support

2012-11-16 Thread zwu . kernel
seq_puts(seq, ",skip_balance"); if (btrfs_test_opt(root, PANIC_ON_FATAL_ERROR)) seq_puts(seq, ",fatal_errors=panic"); + if (btrfs_test_opt(root, HOT_TRACK)) + seq_puts(seq, ",hot_track"); return 0; } -- 1.7.6.5 -- To unsubscrib

[PATCH v1 hot_track 14/16] proc: add two hot_track proc files

2012-11-16 Thread zwu . kernel
- include/linux/hot_tracking.h |7 +++ kernel/sysctl.c | 14 ++ 4 files changed, 30 insertions(+), 12 deletions(-) diff --git a/fs/hot_tracking.c b/fs/hot_tracking.c index a98bfe6..69a6d33 100644 --- a/fs/hot_tracking.c +++ b/fs/hot_tracking.c @@ -27,6 +27,12

[PATCH v1 hot_track 16/16] vfs: add documentation

2012-11-16 Thread zwu . kernel
test devid 1 transid 29 /dev/sdb +[ 1505.952977] btrfs: disk space caching is enabled +[ 1506.069678] vfs: turning on hot data tracking + +2.) Mount debugfs at first: + +$ mount -t debugfs none /sys/kernel/debug +$ ls -l /sys/kernel/debug/hot_track/ +total 0 +drwxr-xr-x 2 root root 0 Aug 8 04:40 sdb +$

[PATCH v1 hot_track 13/16] vfs: add debugfs support

2012-11-16 Thread zwu . kernel
From: Zhi Yong Wu Add a /sys/kernel/debug/hot_track// directory for each volume that contains two files. The first, `inode_stats', contains the heat information for inodes that have been brought into the hot data map structures. The second, `range_stats', contains similar information

[PATCH v1 hot_track 11/16] vfs: register one shrinker

2012-11-16 Thread zwu . kernel
eue_struct *update_wq; struct delayed_work update_work; struct hot_type *hot_type; + struct shrinker hot_shrink; }; extern void __init hot_cache_init(void); -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a mes

[PATCH v1 hot_track 01/16] vfs: introduce some data structures

2012-11-16 Thread zwu . kernel
ytes in hot_range_tree */ + size_t len; /* length in bytes */ +}; + +struct hot_info { + struct hot_rb_tree hot_inode_tree; + spinlock_t lock; /*protect inode tree */ +}; + +extern void __init hot_cache_init(void); + +#endif /* _LINUX_HOTTRACK_H */ -- 1.7.6.5 -- To unsubscribe from t

[PATCH v1 hot_track 04/16] vfs: add two map arrays

2012-11-16 Thread zwu . kernel
struct hot_map_head heat_inode_map[HEAT_MAP_SIZE]; + /* map of range temperature */ + struct hot_map_head heat_range_map[HEAT_MAP_SIZE]; + unsigned int hot_map_nr; }; extern void __init hot_cache_init(void); -- 1.7.6.5 -- To unsubscribe from this list: send the line &quo

[PATCH v1 hot_track 08/16] vfs: add aging function

2012-11-16 Thread zwu . kernel
= 2^X accesses */ #define NRR_MULTIPLIER_POWER 20 /* NRR - number of reads since mount */ #define NRR_COEFF_POWER 0 -- 1.7.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger

[PATCH v1 hot_track 07/16] vfs: add map info update function

2012-11-16 Thread zwu . kernel
_bucket->node_list); + root->hot_map_nr++; + freq_data->last_temp = temp; + } + spin_unlock(>hot_range.lock); + } +} + +/* * Initialize inode and range map info. */ static void hot_map_init(struct hot_info *root) --

Klientskie Bazy http://prodawez.tilda.ws/page7270311.html

2019-09-11 Thread linux-kernel
Klientskie Bazy http://prodawez.tilda.ws/page7270311.html

Klientskie Bazy http://prodawez.tilda.ws/page7270311.html

2019-09-11 Thread linux-kernel
Klientskie Bazy http://prodawez.tilda.ws/page7270311.html

Здравствуйте! Вас интересуют клиентские базы данных?

2019-07-11 Thread linux-kernel
Здравствуйте! Вас интересуют клиентские базы данных?

Zdravstvujte! Vas interesuyut klientskie bazy dannyh?

2019-07-25 Thread linux-kernel
Zdravstvujte! Vas interesuyut klientskie bazy dannyh?

Zdravstvujte! Vas interesuyut klientskie bazy dannyh?

2019-07-25 Thread linux-kernel
Zdravstvujte! Vas interesuyut klientskie bazy dannyh?

Zdravstvuyte! Vas interesuyut kliyentskiye bazy dannykh?

2019-06-07 Thread linux-kernel
Zdravstvuyte! Vas interesuyut kliyentskiye bazy dannykh?

Zdravstvuyte! Vas interesuyut kliyentskiye bazy dannykh?

2019-06-09 Thread linux-kernel
Zdravstvuyte! Vas interesuyut kliyentskiye bazy dannykh?

Zdravstvuyte! Vas interesuyut kliyentskiye bazy dannykh?

2019-06-10 Thread linux-kernel
Zdravstvuyte! Vas interesuyut kliyentskiye bazy dannykh?

Zdravstvujte! Vas interesuyut klientskie bazy dannyh?

2019-07-31 Thread linux-kernel
Zdravstvujte! Vas interesuyut klientskie bazy dannyh?

/sys/devices/system/cpu/vulnerabilities/ doesn't show all known CPU vulnerabilities

2019-08-13 Thread Kernel User
Hi, 'ls /sys/devices/system/cpu/vulnerabilities/' doesn't show all known CPU vulnerabilities and their variants. Only some of them: l1tf mds meltdown spec_store_bypass spectre_v1 spectre_v2 Wikipedia shows more variants:

Re: /sys/devices/system/cpu/vulnerabilities/ doesn't show all known CPU vulnerabilities

2019-08-13 Thread Kernel User
d" (which AFAIK is the case for some cases). > So maintaining this in the kernel is unnecessary to say the least. Knowing that there is no mitigation or that a CPU is not affected is quite different from not knowing anything. So I don't see why you conclude that knowledge is unnecessary.

Re: /sys/devices/system/cpu/vulnerabilities/ doesn't show all known CPU vulnerabilities

2019-08-14 Thread Kernel User
On Wed, 14 Aug 2019 09:04:57 +0200 Borislav Petkov wrote: > IMO, what you want does not belong in sysfs but in documentation. How would documentation (a fixed static text file) tell whether a particular system is vulnerable or not? > I partially see your point that a table of sorts mapping all

[no subject]

2019-10-13 Thread linux-kernel
Здравствуйте! Вас интересуют клиентские базы данных?

[no subject]

2019-10-14 Thread linux-kernel
Здравствуйте! Вас интересуют клиентские базы данных?

[no subject]

2019-09-25 Thread linux-kernel
Здравствуйте! Вас интересуют клиентские базы данных?

[RFC PATCH v2] Softirq:avoid large sched delay from the pending softirqs

2020-07-20 Thread qianjun . kernel
sched delay. Signed-off-by: jun qian --- kernel/softirq.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/kernel/softirq.c b/kernel/softirq.c index c4201b7f..f8e5be9 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c @@ -210,7 +210,7 @@ void

[PATCH V4] Softirq:avoid large sched delay from the pending softirqs

2020-07-24 Thread qianjun . kernel
sched delay. Signed-off-by: jun qian --- kernel/softirq.c | 28 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/kernel/softirq.c b/kernel/softirq.c index c4201b7f..d572ce4 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c @@ -25,6 +25,7 @@ #include

[RFC PATCH 1/1] Softirq:avoid large sched delay from the pending softirqs

2020-07-17 Thread qianjun . kernel
sched delay. Signed-off-by: jun qian --- kernel/softirq.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/softirq.c b/kernel/softirq.c index c4201b7f..602d9fa 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c @@ -299,6 +299,9 @@ asmlinkage __visible void __softirq_entry

[PATCH V3] Softirq:avoid large sched delay from the pending softirqs

2020-07-22 Thread qianjun . kernel
sched delay. Signed-off-by: jun qian --- kernel/softirq.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/kernel/softirq.c b/kernel/softirq.c index c4201b7f..8f47554 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c @@ -200,17 +200,15 @@ void

Клиентские базы! Email: proda...@armyspy.com Узнайте подробнее!

2019-06-26 Thread linux-kernel
Клиентские базы! Email: proda...@armyspy.com Узнайте подробнее!

Клиентские базы! Email: proda...@armyspy.com Узнайте подробнее!

2019-06-28 Thread linux-kernel
Клиентские базы! Email: proda...@armyspy.com Узнайте подробнее!

Клиентские базы! Email: proda...@armyspy.com Узнайте подробнее!

2019-06-29 Thread linux-kernel
Клиентские базы! Email: proda...@armyspy.com Узнайте подробнее!

Клиентские базы! Email: proda...@armyspy.com Узнайте подробнее!

2019-06-30 Thread linux-kernel
Клиентские базы! Email: proda...@armyspy.com Узнайте подробнее!

Клиентские базы! Email: proda...@armyspy.com Узнайте подробнее!

2019-07-04 Thread linux-kernel
Клиентские базы! Email: proda...@armyspy.com Узнайте подробнее!

<    3   4   5   6   7   8   9   10   11   12   >