V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  tempdban  ›  全部回复第 13 页 / 共 52 页
回复总数  1036
1 ... 9  10  11  12  13  14  15  16  17  18 ... 52  
@yao990 看你 43 楼的日志还是有 inode 会丢了的,去 lost+found 找
这些 inode 谁也不知道是什么文件,你胆大就搞,不敢就放在那。
设备忙是因为还有文件描述符没有关闭,fuser
不用每一步就找我确认一下,我说话不用付什么责任的,操作的人还是你
你先 dd 备份一下啊
谁能知道丢多少…
我是觉得没啥问题了… 你可以 彻底 umount 掉 然后 repair
到不是日志,我怕你把 ag 租和 inode 搞丢了。
还有输入输出错误就再看 dmesg,实在搞不定就 dd 然后 repair
要是想完全和以前一样,不是不能,但是超级难。
要是能忍受一点点的数据丢失那好办了
@reus 他 lazy umount 的 之前压根没 repair 还有救
dm-2: rw=7217, want=6444519751, limit=5862637568
把硬盘再 lv 再扩大吧,没有原来的的大。
还有你的数据大概率找不全了
[242061.505790] attempt to access beyond end of device

[242061.505799] dm-2: rw=7217, want=6444519751, limit=5862637568

[242061.505818] XFS (dm-2): metadata I/O error: block 0x1801f9145 ("xlog_iodone") error 5 numblks 64

[242061.505825] XFS (dm-2): xfs_do_force_shutdown(0x2) called from line 1222 of file fs/xfs/xfs_log.c. Return address = 0xffffffffc053ae20

[242061.505836] XFS (dm-2): Log I/O Error Detected. Shutting down filesystem

[242061.505839] XFS (dm-2): Please umount the filesystem and rectify the problem(s)

[242239.788000] sdc: sdc1
从你的 log 里没看到任何 umount 的操作,先 umount 再 xfs_repair
输入输出错误,把 dmesg 打出来我看一眼
2018-07-13 10:47:54 +08:00
回复了 peterpei 创建的主题 Linux 为什么在 twrp 下就可以使用 make_ext4fs?
你贴一下报错
2018-07-13 02:52:27 +08:00
回复了 jssyxzy 创建的主题 程序员 工作中遇到一个棘手的技术或者业务问题,如何解决?
等灵感
2018-07-13 02:37:48 +08:00
回复了 peterpei 创建的主题 Linux 为什么在 twrp 下就可以使用 make_ext4fs?
应该是姿势问题
sysroot libc 交叉编译工具链都用对了么
2018-07-12 20:40:29 +08:00
回复了 Reign 创建的主题 程序员 3×6T 机械硬盘,预存储数据为 11T, Raid0 好还是 Raid5 好?
我们服务器上的 raid 卡有个奇怪的 raid 模式 要求至少五块盘 四个主用一个备用 要是六块就两备用。最大 8 个盘也是两个备用。
他明确说了不叫 Raid 5。
2018-07-12 14:37:20 +08:00
回复了 jssyxzy 创建的主题 程序员 编程中用移位运算替代乘除法会不会有问题?
@yanaraika 其实我并不觉得写未定义行为的代码,就是问题,更谈不上是严重的问题。
我们这套代码用了十多年了,好多东西都是静态库直接分发的,能 O3 的部分早就 O3 了。
历史包袱有多重,你想不到的兄弟,就这样上边还嫌需求开发的慢呢,本来 O2 能跑,就为了一点虚无缥缈的性能,你非要换成 O3,线上炸了,这个责任谁接,炸了的这部分代码和你一点关系都没有? O2 加上特殊的代码写法,能达到我们要的性能,何必换呢?
再说 O3 又不是一定会带来性能提升,我贴一段话:

-O3 has several disadvantages:

First of all it often produces slower code than -O2 or -Os. Sometimes it produces longer code due to loop unrolling which may be in fact slower due to worse cache performance of code.
As it was said it sometimes produces wrong code. It may be either due to error in optimalization or error in code (like ignoring strict aliasing). As kernel code sometimes is and sometimes have to be 'smart' I'd say it is possible that some kernel developer made some error. I experienced various strange problems, like crashing of userspace utilities, when I compiled kernel with gcc 4.5 which at that point was stable. I still use gcc 4.4 for kernel and several selected userspace utilities due to various bugs. The same may apply for -O3.
I don't think it offers much benefit for the Linux kernel. The kernel does not do heavy computations and in places it does, it is optimized with assembly. -O3 flag will not change the cost of context switching or speed of I/O. I don't think something like <0.1% speedup of overall performance is worth it.

只要是能稳定,性能不差,O2 又能怎样。
招不到靠谱的人,兄弟,不是说这十几年里每个人都是会写 well-defined 的代码,要是人人都这样,那还要做什么测试,直接发布就得了。
理想很丰满啊哥们。
2018-07-12 13:04:26 +08:00
回复了 jssyxzy 创建的主题 程序员 编程中用移位运算替代乘除法会不会有问题?
@yanaraika 我还是那句话,有的事情远比你我在这里讨论的情况,还要复杂
2018-07-12 13:03:32 +08:00
回复了 jssyxzy 创建的主题 程序员 编程中用移位运算替代乘除法会不会有问题?
@yanaraika O3 符合标准,是谁的标准?
你怎么就能确定我们的代码经过 O3 优化后,编译出来的东西,就一定是我们想表达的意思?
2018-07-12 01:15:32 +08:00
回复了 jssyxzy 创建的主题 程序员 编程中用移位运算替代乘除法会不会有问题?
@jssyxzy 我也有点这个感受
1 ... 9  10  11  12  13  14  15  16  17  18 ... 52  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5828 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 28ms · UTC 02:25 · PVG 10:25 · LAX 19:25 · JFK 22:25
Developed with CodeLauncher
♥ Do have faith in what you're doing.