search for: pagesize

Displaying 20 results from an estimated 196 matches for "pagesize".

Did you mean: page_size
2007 Nov 14
1
[PATCH] Remove pagesize parameter from vring_init/vring_size
...c b/Documentation/lguest/lguest.c index 4200839..171dead 100644 --- a/Documentation/lguest/lguest.c +++ b/Documentation/lguest/lguest.c @@ -34,6 +34,11 @@ #include <zlib.h> #include <assert.h> #include <sched.h> + +/* these are needed for virtio_ring.h */ +#define PAGE_SIZE (getpagesize()) +#define PAGE_ALIGN(addr) (((addr) + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1)) + #include "linux/lguest_launcher.h" #include "linux/virtio_config.h" #include "linux/virtio_net.h" @@ -1036,7 +1041,7 @@ static void add_virtqueue(struct device *dev, unsigned int num_de...
2007 Nov 14
1
[PATCH] Remove pagesize parameter from vring_init/vring_size
...c b/Documentation/lguest/lguest.c index 4200839..171dead 100644 --- a/Documentation/lguest/lguest.c +++ b/Documentation/lguest/lguest.c @@ -34,6 +34,11 @@ #include <zlib.h> #include <assert.h> #include <sched.h> + +/* these are needed for virtio_ring.h */ +#define PAGE_SIZE (getpagesize()) +#define PAGE_ALIGN(addr) (((addr) + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1)) + #include "linux/lguest_launcher.h" #include "linux/virtio_config.h" #include "linux/virtio_net.h" @@ -1036,7 +1041,7 @@ static void add_virtqueue(struct device *dev, unsigned int num_de...
2015 Jul 04
0
Support for transparency in metafile export & support for export to Powerpoint
...return(p)} p = captureplot() plotsize = dev.size() plotaspectr = plotsize[[1]]/plotsize[[2]] if (!is.null(aspectr)) plotaspectr=aspectr myplot=function(pl=p) print(pl) if (type=="PPT") {doc = pptx();doc = addSlide(doc, slide.layout = "Blank");pagesize = dim(doc)$slide.dim} else {doc = docx();pagesize = dim(doc)$page-dim(doc)$margins[c(4,3)]} pageaspectr = pagesize["width"]/pagesize["height"] if (pageaspectr>plotaspectr) {xf=plotaspectr/pageaspectr;yf=1} else {xf=1;yf=pageaspectr/plotaspectr} w = (scaling/100)*pagesiz...
2007 Nov 15
0
[PATCH] Fix vring_init/vring_size to take unsigned long
...include/linux/virtio_ring.h b/include/linux/virtio_ring.h index 1a4ed49..5de09f9 100644 --- a/include/linux/virtio_ring.h +++ b/include/linux/virtio_ring.h @@ -89,7 +89,7 @@ struct vring { * }; */ static inline void vring_init(struct vring *vr, unsigned int num, void *p, - unsigned int pagesize) + unsigned long pagesize) { vr->num = num; vr->desc = p; @@ -98,7 +98,7 @@ static inline void vring_init(struct vring *vr, unsigned int num, void *p, & ~(pagesize - 1)); } -static inline unsigned vring_size(unsigned int num, unsigned int pagesize) +static inline u...
2007 Nov 15
0
[PATCH] Fix vring_init/vring_size to take unsigned long
...include/linux/virtio_ring.h b/include/linux/virtio_ring.h index 1a4ed49..5de09f9 100644 --- a/include/linux/virtio_ring.h +++ b/include/linux/virtio_ring.h @@ -89,7 +89,7 @@ struct vring { * }; */ static inline void vring_init(struct vring *vr, unsigned int num, void *p, - unsigned int pagesize) + unsigned long pagesize) { vr->num = num; vr->desc = p; @@ -98,7 +98,7 @@ static inline void vring_init(struct vring *vr, unsigned int num, void *p, & ~(pagesize - 1)); } -static inline unsigned vring_size(unsigned int num, unsigned int pagesize) +static inline u...
2012 Oct 02
1
ffsave problems
...)= chr "double" .. .. ..- attr(*, "maxlength")= int 65640757 .. .. ..- attr(*, "pattern")= chr "clone" .. .. ..- attr(*, "filename")= chr "C:/Users/ADMIN-~1/AppData/Local/Temp/RtmpqmcfGU/clone10d86b45b04.ff" .. .. ..- attr(*, "pagesize")= int 65536 .. .. ..- attr(*, "finalizer")= chr "delete" .. .. ..- attr(*, "finonexit")= logi TRUE .. .. ..- attr(*, "readonly")= logi FALSE .. .. ..- attr(*, "caching")= chr "mmnoflush" .. ..- attr(*, "virtual")=...
2016 Mar 30
12
[Bug 94757] New: powerpc64 & 64Kb kernel pagesize not working with nouveau
https://bugs.freedesktop.org/show_bug.cgi?id=94757 Bug ID: 94757 Summary: powerpc64 & 64Kb kernel pagesize not working with nouveau Product: xorg Version: unspecified Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: Driver/nouveau Assignee: nouveau at lis...
2013 Jun 25
0
[LLVMdev] [PATCH] Windows implementation of enable_execute_stack
...h" >> > * FIXME: CMake - include when cmake system is ready. >> > @@ -38,7 +42,7 @@ >> > >> > void __enable_execute_stack(void* addr) >> > { >> > - >> > +#ifndef _WIN32 >> > #if __APPLE__ >> > /* On Darwin, pagesize is always 4096 bytes */ >> > const uintptr_t pageSize = 4096; >> > @@ -54,6 +58,14 @@ >> > unsigned char* endPage = (unsigned >> char*)((p+TRAMPOLINE_SIZE+pageSize) & pageAlignMask); >> > size_t length = endPage - startPage; >> > (void)...
2010 Jun 25
0
Can we set sectorsize to any number greater than pagesize
Hi, everyone! mkfs.btrfs just does the following check for sectorsize when we use it to make a btrfs. sectorsize = max(sectorsize, (u32)getpagesize()); Does that mean we can set sectorsize to any number greater than pagesize? If not, I think we should do more check for sectorsize in mkfs.btrfs. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majord...
2001 Feb 26
0
Problems with OpenSSH 2.5.1p1 on Solaris 8
...lt;sys/mman.h> +#endif + /* AIX limits */ #if defined(HAVE_GETUSERATTR) && !defined(S_UFSIZE_HARD) && defined(S_UFSIZE) # define S_UFSIZE_HARD S_UFSIZE "_hard" @@ -1173,6 +1177,12 @@ #endif if (!options.use_login) { +#ifdef HAVE_ETC_DEFAULT_LOGIN + int fd, pagesize; + struct stat inode; + char *onemore = MAP_FAILED, *logstr = MAP_FAILED; + char *pathstr; +#endif /* Set basic environment. */ child_set_env(&env, &envsize, "USER", pw->pw_name); child_set_env(&env, &envsize, "LOGNAME", pw->pw_name); @@ -1188,7...
2008 Apr 20
1
kvm_open: kvm_nlist: No such file or directory
...sysutils/wmmemmon's mem_freebsd.c file: -------------------------------------------------------------- static kvm_t *kvm_data = NULL; static int pageshift; static struct nlist nlst[] = { {"_cp_time"}, {"_cnt"}, {0} }; /* initialize function */ void mem_init(void) { int pagesize = getpagesize(); pageshift = 0; while (pagesize > 1) { pageshift++; pagesize >>= 1; } kvm_data = kvm_open(NULL, NULL, NULL, O_RDONLY, "kvm_open"); if (kvm_data == NULL) { fprintf(stderr, "can't open kernel virtual memory");...
2001 Oct 02
1
Manual Printer Driver Installations
Hey, I posted a few days ago about how the printer paper sizes are differ from the admin account when they are installed. People at my work are getting pissed at the moment and all they want to do is to be able to change the paper sizes themselves and not have it done at the server Is there a way to do it? I fluked it at one stage and had it working like that, I think I deleted the driver
2004 Jul 15
2
getpagesize / libsysfs broken with 0.148
Hi all, the implementation of getpagesize() is broken in klibc. klibc uses sysinfo.mem_unit, which linux interpretes as the memory unit all other memory values returned are to be multiplied with. So it's perfectly ok for the linux sysinfo() to return a mem_unit of '1', which is does if the memory available for this machine f...
2009 Dec 30
1
Samba4 A11 Provision Fails on 389-DS - Fedora 12
...9;samba4' was successfully created. Exiting . . . Log file is '/tmp/setupP3h9pd.log' importing data ... [30/Dec/2009:15:12:43 -0600] - Information: Non-Secure Port Disabled [30/Dec/2009:15:12:43 -0600] - Backend Instance: sambaData [30/Dec/2009:15:12:43 -0600] - dblayer_instance_start: pagesize: 4096, pages: 2049500, procpages: 47759 [30/Dec/2009:15:12:43 -0600] - cache autosizing: import cache: 204800k [30/Dec/2009:15:12:43 -0600] - li_import_cache_autosize: 50, import_pages: 51200, pagesize: 4096 [30/Dec/2009:15:12:43 -0600] - WARNING: Import is running with nsslapd-db-private-import-me...
2020 Aug 07
3
[PATCH nbdkit] file: Implement cache=none and fadvise=normal|random|sequential.
...(https://github.com/Feh/nocache). I started with a 32 GB file of random data on a machine with about 32 GB of RAM. At the beginning of the test I evicted the file from the page cache: $ cachedel /var/tmp/random $ cachestats /var/tmp/random pages in cache: 0/8388608 (0.0%) [filesize=33554432.0K, pagesize=4K] Performing a normal sequential copy of the file to /dev/null shows that the file is almost entirely pulled into page cache (thus evicting useful programs and data): $ free -m; time ./nbdkit file /var/tmp/random --run 'qemu-img convert -n -p -m 16 -W $nbd "json:{\"file.driver\&qu...
2020 Aug 21
4
Using Samba AD/DC as an Active Directory OAuth provider for OpenShift
...at must not be the problem, then.. Do you see anything else that > stands out in the lines below? > > augmentedActiveDirectory: > ??? groupsQuery: > ??????? baseDN: "DC=ad,DC=lasthome,DC=solace,DC=krynn" > ??????? scope: sub > ??????? derefAliases: never > ??????? pageSize: 0 > ??????? filter: (objectclass=group) > ??? groupUIDAttribute: primaryGroupID > ??? groupNameAttributes: [ cn ] > ??? groupMembershipAttributes: [ "memberof:1.2.840.113556.1.4.1941:" ] > ??? usersQuery: > ??????? baseDN: "DC=ad,DC=lasthome,DC=solace,DC=krynn&quot...
2020 Apr 01
3
LLD default page size for arm32
...have been debugging a really thorny issue where binaries build with clang and linked with lld was just "Killed" when started on a specific armv7 device we ship on. After quite a bit of head scratching it turns out that the kernel on this device ships with a 32k default page size (getconf PAGESIZE) and lld uses 4k default page size. We fixed this by passing -zmax-page-size=0x10000 to lld. The default page size in GNU ld for arm is 64k so binaries linked with ld just worked on this device. I put the question in the discord lld channel and after a bit back and forth I think it's better...
2019 Aug 03
2
lld-link /ALIGN option doesn't work for the "execute in place (XIP)"
...uefi firmware with lld-link. We need to set the COFF executable file SectionAlignment through the lld-link /ALIGN option, but we find the SectionAlignment is hardcoded to 4096 which cause the /ALIGN option doesn't work at all. Below is the hardcode in lld: lld\COFF\Writer.h static const int pageSize = 4096; lld\COFF\Writer.cpp pe->SectionAlignment = pageSize; The uefi firmware need to directly run in ROM device (in XIP way) before the system memory is ready. These XIP executable files are not loaded in memory and their section running alignment is just same as the alignment in file. With...
2007 Feb 28
1
On PostScript
...few bits of information from my explorations and I wonder if someone here with greater postscript exprience than I might help: What am getting from printing to a file using an applewritter ppd is this: ---> snip %%Page: 1 1 %%PageBoundingBox: 0 0 612 792 %%BeginPageSetup % [{ %%BeginFeature: *PageSize Letter <</PageSize[612 792]/ImagingBBox null>>setpagedevice %%EndFeature } stopped cleartomark %%EndPageSetup gsave [0.24 0 0 -0.24 0 792] concat gsave 237 278 moveto 0 setgray (Courier-iso1252) cvn findfont 50 -50 matrix scale makefont setfont <585858582D746F2D6661782D6E756D626572&g...
2013 Jan 19
1
error on startup
...g to 'uname' -B address QEMU_GUEST_BASE set guest_base address to 'address' -R size QEMU_RESERVED_VA reserve 'size' bytes for guest virtual address space -d options QEMU_LOG activate log -D logfile QEMU_LOG_FILENAME override default logfile location -p pagesize QEMU_PAGESIZE set the host page size to 'pagesize' -singlestep QEMU_SINGLESTEP run in singlestep mode -strace QEMU_STRACE log system calls -version QEMU_VERSION display version information and exit Defaults: QEMU_LD_PREFIX = /usr/gnemul/qemu-x86_64 QEMU_STACK_S...