Questions tagged «size»

4
如何获得stdin的大小?
我要压缩一个大目录,并且我想知道结果文件的大小。 我试过使用du: $ tar -cv dir | du -h - du: cannot access '-': No such file or directory 然后,我尝试使用文件版本“-”: $ tar -cv dir | du -h /dev/stdin 1.0K 我确定这个数字不正确。如何获得stdin的大小?

1
Raspberry Pi,串行控制台,minicom和gnome终端
我正在尝试通过gpio引脚上的串行控制台访问raspberry pi。通过USB-3.3v串行加密狗可以正常工作。但是,存在长线和长屏幕无法正确显示的问题。我在未设置为24x80列的gnome-terminal中运行minicom(并且gnome-terminal的Terminal / 1(24x80)选项)无济于事。 好像minicom完全忽略了它必须获得的sigwinch,和/或没有办法通过串行线路发送该信号来更改终端类型。

3
更改内存页面的大小?
我想将内核的页面大小从4KB更改为4MB,因为我在计算机上增加了大量RAM,并且我再也用不完了。 这个想法是,需要大量内存的程序将在分配页面上花费更少的时间。我想它可以提高性能,我想尝试一下。 跑步时我什么也找不到make menuconfig。有没有办法做到这一点?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.